I am new to jquery / javascript and highcharts. I'm having a hard time searching and thinking of how could I add an array of data to the series.
What I mean is, I have some sort like this data
var data1 = [1,2,3,4,5,6,7,8]
var data2 = [3,4,5,6,7,8,9]
var data3 = [2,4,5,6,7,8,9,1]
var dataNames = ['test1','test2','test3'];
these sample variables is might increase in the future so I want it to be added dynamically. I don't exactly know how can I add this through loop or any other way.
How do I add this to series?