Add new series 'barrange'
Currently the only way to create a horizontal 'columnrange' series on a datetime axis is to create an inverted graph. This makes it impossible to easily add other series like lines/splines as x/y is swapped. It is possible to simulate this with a scatter series with swapped x,y and lineWidth > 0 but this is far from ideal. Another hack is using a thick line that is broken into sub segments. But this will require you to add a new series for each colored block as a line series cannot apply different colors to segments of a line.
It is suggested to add a new series 'barrange' that like the 'bar' series, does not require the entire graph to be inverted.
-
Claus Elsborg commented
Yes that is exactly what I want.
In the meantime, Is there any other way I can simulate that functionality, besides what I described above?
About the bar series: True, I can see that now, never used the series, just saw that the example did not set the chart to be inverted. But of course it will not make sense. -
I see your point - just a note: the bar chart is actually an inverted column chart with a vertical X axis and horizontal Y axis.
So what you want is something like an X range, where each "point" has a start x, an end X, an y value and a color at least.