chart component based html5 and flash