right now I have it set up as
let year = 2017;
let flights = {
2014: [$w('#dataset1').getCurrentItem().number, $w('#dataset1').getCurrentItem().number2, $w('#dataset1').getCurrentItem().number3, $w('#dataset1').getCurrentItem().number4],
2015: [1, 2, 3, 4, 5],
2016: [1, 2, 3, 4, 5],
2017: [7.4, 3.9, 8.8, 6.1, 8.7, 9.8]
};
the rest of the code is the same as in the example used in create-a-custom-chart aside from the part that goes over labels
But basically, using getcurrentitem works but I’d prefer to use a loop or even to just be able to reference all the number in the dataset without having to type each item individually