javascript - Multiple intervals in columnrange chart Highcharts -
im trying create columnrange chart several categories displaying interval during year. works fine, however, im stuck problem 1 of categories, need 2 intervals on same row.
so, example, in fiddle attached below, have each category from-to months.
eg:
category 1: mar->jun
category 2: july->aug
etc.
but im stuck eg this:
categoty 3: mar->jun, sep->oct
here fiddle: http://jsfiddle.net/t9rsf6n7/1/
series: [ { name: '', color: '#795548', data: [ { low:date.utc(2017,1,1), high:date.utc(2017,3,31), color:'#ffae3d' }, { low:date.utc(2017,2,1), high:date.utc(2017,4,30), color:'#ff3d3d' } ] } ]
any appreciated.
set x value each data point, , 2 points in category 3, they'll both have same x value.
series: [ { name: '', color: '#795548', data: [ { x:0, low:date.utc(2017,1,1), high:date.utc(2017,3,31), color:'#ffae3d' }, { x:1, low:date.utc(2017,2,1), high:date.utc(2017,4,30), color:'#ff3d3d' }, { x:2, low:date.utc(2017,2,1), high:date.utc(2017,5,30), color:'#3d3dff' }, { x:2, low:date.utc(2017,8,1), high:date.utc(2017,9,30), color:'#3d3dff' }, ] }]
Comments
Post a Comment