x zoom for multiseries data
I have four series of data, and each series only has one data point. I would like to render these data with x-dimension zoom ability as good as 4 data points in one series. If this is a duplicate topic, I am really sorry, because I could not find a similar one.
Here is the fiddle: http://jsfiddle.net/yMSCZ/8/
I was trying to approach it by adding dummy x value to each data point from each series: http://jsfiddle.net/yMSCZ/9/ But it did not work out.
I understand in the first fiddle, HC will treat all the four points with the same x index, so that x-dimension zoom would not work well. I was wondering if anybody has any idea that HC could treat the these four points at different x index, so that the x-dimension zoom would work as well as 4 points from one series.
Reformat the four points into one series may solve the problem, but we will lose the nice legends rendering if we do that. And xAxis.minRange might help, but it feels like not the ideal way.
Thanks
Regarding the OP, the recommended setup would be to use categories like this: http://jsfiddle.net/highcharts/yMSCZ/19/
-
kzoon commented
This would certainly be a welcome feature. Imagine a column chart with 2 years side by side with a large number of products in each year, arranged from highest sales to lowest. You might want to zoom on the 3 highest ranking products.
Legend doesn't have to be a problem: you can easily fit 10 products in a legend. Alternatively you could show the productname in the datalabel. -
Anonymous commented
Thanks for the comments!
I do expect to keep the beautiful legends.
The scenario here could be a fairly common use case. Let's say we have January's salesman performance data for 100 salesmen. We want to zoom in to see only a few of them. In this case, the proposed function is really useful. And it is not only for column/bar chart, maybe the future incoming bubble chart and some other chart type on HC road map.
So Could this be considered as one enhancement of HC in the next release?
Thanks
-
These strictly belong to one series, so I'm afraid HC can't do what you want. Zooming in on one single X point doesn't make sense. You will lose the legend if you change it to one series, but then you are supposed to use categories for each point's name.