Hi so I'm using Highcharts.js to create a line graph with multiple lines. The data of each line is currently in seperate columns of a spreadsheet.
I can output this spreadsheet as a CSV but it moves across the columns rather than down the rows. How would I convert this CSV which would give me groups of comma seperated values for each row?
For each line of the chart I need a series of data that looks like this...
data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
Everything is inside Javascript code so I presume I need to write something which will cycle through the CSV and..
1) See how many comma seperated values there are per line (This will be the number of columns)
2) If there is 4 columns just take the 1st, 5th, 9th, 13th value and put it in a comma-seperated array.
3) Do this for each column so I have 4 arrays I can use in the chart
I'm sure this is childsplay but I'm more of a frontend designer so this has stumped me.
Thanks for any advice