Add an ability to show error bar in legend
Currently the error bar does not show up in legend. Error bars can be used to show various data (e.g. blood pressures) and we need a way to show it in the legend.
To enable the error bar in the legend and preserve the link to the parent series, just set showInLegend to true: http://jsfiddle.net/highcharts/158nvhe3/9/
The error bar is linked to “:previous” by default. By nulling this option, it appears as a standalone series. http://jsfiddle.net/highcharts/GpPHq/.
-
Paul commented
Follow this issue on GitHub: https://github.com/highslide-software/highcharts.com/issues/4245
-
Paul commented
Nulling the error bar series means detaching it from its parent series. While this approach will certainly work sometimes, it is not a viable solution.
See, for example, what happens when multiple series are presented as columns: http://jsfiddle.net/158nvhe3/
A different solution is needed; preferrably one that keeps the parent link is kept intact. How about adding an "enableLegend" (or equivalent) option in plotOptions.errorbar?
-
ayako commented
Perfect, thank you very much! One follow-up question is - is there any way I can put a custom image as a symbol for the error bar series in the legend? Currently it looks like a bar and doesn't reflect how the error bar looks in the chart.