Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Array for data values?

Open peterdom opened this issue 13 years ago • 1 comments

Is it planned to support an array for a data value?

For example: data : [[1,28],[2,48],[4,40],[6,19]]

So that the value '28' will be plottet on position '1', the value '48' will be plottet on position '2' and so on...

This would also allow to leave out some values when plotting 2 graphs with missing values on their datasets...

peterdom avatar Mar 18 '13 09:03 peterdom

No I don't think so, we need to associate data with options like colours/labels, so keeping it in the datasets: [] format makes sense here.

nnnick avatar Jun 29 '14 19:06 nnnick