Home Forums Chart Support Graph a CSV file Reply To: Graph a CSV file

#8714

sid

Thanks for such an awesome utility!.
I’m pretty new to web dev, but canvasjs has been a great motivation.
I have my data.csv regularly being updated (appended)

1. I need to know if there could be a way that graph is also (appended) say after every 2 minutes. Increment already plotted graph (and dont do whole work of plotting from beginning again). Basically it should store already plotted points and avoid replots.

2. Suppose my csv has more than 2 columns (say 10), can I plot multi line graphs by specifying column names. eg. to find correlation between 2 or more value. Line colour legeds can be taken from column names (headers)

Moving forward I would like my web page to have an option to show/hide lines. eg. by default it shows lines for all columns. (This is just an additional utility which may come handy,can be ignored for now)

AS far as my point 2 of multiple line graph is concerned, I think, we need to just send other column values in the below code. dataPoints for all columns should be passed instead.

for (var i = 1; i <= allLinesArray.length-1; i++) {
                                var rowData = allLinesArray[i].split(',');
                                <strong>dataPoints.push({label:rowData[0],y:parseInt(rowData[1])});</strong>
                        }

Thanks is advance.

  • This reply was modified 8 years, 10 months ago by sid. Reason: adding more details
  • This reply was modified 8 years, 10 months ago by sid.