highcharts - setting one array for X axis (in time, each day) and for series only set Y points -
how can set 1 time x axis points array in utc datetime. (even better if there startpoint:datefrom
, endpoint:dateend
for each day)
then in series put y points each charttype ?
is possible ? because series object have data :
let data = [{ "name": "< 100 mb", "type": "column", "data": [ [date.utc(2013, 7, 1), 2], [date.utc(2013, 7, 2), 3], [date.utc(2013, 7, 3), 3], [date.utc(2013, 7, 4), 2], [date.utc(2013, 7, 5), 1] ] }, { "name": "< 10 mb", "type": "column", "data": [ [date.utc(2013, 7, 1), 3], [date.utc(2013, 7, 2), 3], [date.utc(2013, 7, 3), 2], [date.utc(2013, 7, 4), 4], [date.utc(2013, 7, 5), 10] ] }, { "name": "< 1 mb", "type": "column", "data": [ [date.utc(2013, 7, 1), 2], [date.utc(2013, 7, 2), 3], [date.utc(2013, 7, 3), 2], [date.utc(2013, 7, 4), 3], [date.utc(2013, 7, 5), 5] ] }];
you can see x axis same... how can improve ?
Comments
Post a Comment