You must be logged in to post your query.
Home › Forums › Chart Support › Dynamic length of datapoints
Tagged: csvfile, dataPoints
Hi, I’m a novice trying to create a graph using data from CSV. I put in some code after looking through the forums and the examples. Apologies if the code is bad or not optimized.
My CSV data looks like this : Client,min,max,typical,avg,rough,median,final server32,26.74,53.82,39.96,37.94,43.76,47.54,8.64 server32,27.22,52.42,39.93,37.86,43.67,47.3,8.54 server32,26.12,60.47,40.19,38.2,43.78,48.4,8.54 server32,26.96,55.06,40.17,38.21,43.76,48.05,8.54
Code is saved in below link https://jsfiddle.net/e2qsLnd4/
The number of CSV columns are not always same so is there a way to loop columns instead of pre-defining it so that the html is flexible on the CSV given?
@manuks,
Please take a look at this JSFiddle for an example on rendering chart using data from a CSV file based on the range of the data.
____________ Indranil Deo Team CanvasJS
thanks a ton. it works!!
You must be logged in to reply to this topic. Login/Register