You must be logged in to post your query.
Home › Forums › Chart Support › Using a CSV file for multiple Y-axes
Tagged: CSV file for Y axes
Hello Guys and Girls!
I am new to this chart thing and I have a problem… I want to create a chart with multiple Y axes from a CSX chart ((ex line: Latvia, 312, 312)( or from another csv file: (1, Belgium, “1012,8”, “1007,8”, “1013,7”, “999,4”, “1022,8”, “1034,4”, “1043,6”, “1067,3”, “1072,0”, “1111,0”, “1073,8”)). I really don’t know to get each line in another y-axe :-(. var points; var csvLines = csv.split(/[\r?\n|\r|\n]+/); for (var i = 1; i < csvLines.length; i++) { if (csvLines[i].length > 0) { points = csvLines[i].split(“,”); dataPoints.push({ label: points[0], y: parseFloat(points[1]) Is only what I got but is it possible to parseFloat this into new y axes? for ex y2:parsefloat… Anyway thanks! And have a nice day!
@egroj81,
Can you kindly share sample CSV file over Google-Drive or Onedrive and brief us further about what data to be shown in multiple y-axes so that we can understand your scenario better and help you out?
—- Manoj Mohan Team CanvasJS
You must be logged in to reply to this topic. Login/Register