Home forums Chart Support Plot graph froma large .txt file Reply To: Plot graph froma large .txt file



We constructed the txt file with sample / dummy data in the format that you have shared – which was approx 150MB. We observed that the time taken to read txt-file and parse the data to the format accepted by CanvasJS is approx 7 seconds. And it’s taking few more seconds to render 7 million datapoints. We observe that in the JSFiddle that you have shared you are trying to read txt file and render chart every second which might be causing issue. We recommend you to read txt file every 30 seconds or 1 minute to improve the performance of your application. Also, you can filter / group the data to reduce number of dataPoints to be shown within a part of screen than trying to visualizing 7 millions of dataPoints. Filtering / data-grouping will also improve the performance, which you can achieve with the help of rangeChanging event as shown in this JSFiddle.

Manoj Mohan
Team CanvasJS