ChartJS - array of data longer than number of labels?
I am making a line chart for charts. I am trying to figure out how / if I can pass a longer array of data than there are labels for. So basically time series in ChartJS?
Something like: http://www.highcharts.com/demo/line-time-series
I have something like:
var data = {
labels: [1,2,3],
datasets: [
{
label: "My First dataset",
fillColor: "rgba(151,187,205,0.2)",
strokeColor: "rgba(151,187,205,1)",
pointColor: "rgba(151,187,205,1)",
pointStrokeColor: "#fff",
pointHighlightFill: "#fff",
pointHighlightStroke: "rgba(220,220,220,1)",
data: [0, 1, 1, 0, 0, 1, 0,]
}
]
};
Where labels 1,2,3 represent hours. I want to display slightly more accurate data than one hour (say every minute or so), but shouldn't be flagged.
+3
source to share
No one has answered this question yet
Check out similar questions: