You must be logged in to post your query.
Home › Forums › Chart Support › graphs for ime duration
Hi, is there any way/example, where I can draw graphs using canvasjs for certain intervals. I have a csv file, which gets updated every minute. I need to read content from that csv draw graphs for intervals like ” display graphs for the last 10 minute’s data” or for the “last day data” etc.
csv example: DateTime SizeCurrent sizelast 13-06-2018 00:00 10 80 13-06-2018 00:00 10 80 13-06-2018 00:01 90 65 13-06-2018 00:01 90 65 13-06-2018 00:02 100 60
Thanks Parwez Khan
@pkhan,
Please take a look at this jsfiddle.
__ Priyanka M S Team CanvasJS
Thanks Priyanka for quick help, how can I test it with more data(I want to test this example with my real csv file, which contains thousands of lines). Can I test it locally ?
Also, can I use this as area chart ?
Thanks for the help.
Can I test it locally ?
You can test it locally by making an ajax request to your local file. Since you will be running the program directly from the file system, ajax request would get blocked due to browser security/ Cross-Origin requests. So please run the same via a local server like Apache, Nginx, IIS, etc and it should work fine.
can I use this as area chart ?
Yes. You can use the above provide code with any Chart types with axes.
You must be logged in to reply to this topic. Login/Register