Home forums Using CanvasJS Dynamic CSV chart Reply To: Dynamic CSV chart

#25470

Hi Vishwas,

Thank you for your help. I tried the sample code you provided and it worked. But the only problem is that it is squeezing all the datas to the left. Is there a way to customize how much data to show? And what is the correct way I should create the csv file?
This is the data I have:
Time(X Axis) Utility (Y Axis)
00:00:03 EST 422
00:00:08 EST 416
00:00:13 EST 418
00:00:19 EST 422
00:00:23 EST 416
00:00:28 EST 416
00:00:33 EST 417
00:00:39 EST 418
00:00:44 EST 422
00:00:49 EST 425
00:00:54 EST 426
00:00:59 EST 415

Original I had it like this:
00:00:03 EST,422
00:00:08 EST,416
00:00:13 EST,418
00:00:19 EST,422
00:00:23 EST,416
00:00:28 EST,416
00:00:33 EST,417
00:00:39 EST,418
00:00:44 EST,422
00:00:49 EST,425
00:00:54 EST,426
00:00:59 EST,415

but the value was not showing properly on the X axis.

Thank you in advance!