I have 7 column in my table “users”. The columns are like this:
ac0 // Represents clicks made today
ac1 // Represents clicks made from ac0
ac2 // Represents clicks made from ac1
ac3 // Represents clicks made from ac2
ac4 // Represents clicks made from ac3
ac5 // Represents clicks made from ac4
ac6 // Represents clicks made from ac5
I have to show this in a chart, that is build up like this:
xAxis: {
categories: ['Today', 'Yesterday', '12-08', '11-08','10-08','09-08','08-08']
},
series: [{
name: 'Clicks',
data: [1,4,5,2,6,4,6]
}]
As you can see, I have to insert the ac# into the data:[] field, and then add a date to each, to insert in the categories:[].
How can this be obtained?
If you only need to populate “categories” and “data” it’s even easier: