I have a jquery graph which takes in data in sets for example
data: [
[ vara,varb,varc,vard ],
I have an array of numbers such as
n = [1,2,3,4,5,6,7,8]
I want to graph to take the first four numbers, then if theres any left over make a new data set. The end result graph data should represent
data: [
[1,2,3,4],
[5,6,7,8],
]
The whole point of doing so is that i wont have to manually enter data into the graph it would be read from the array.