Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errorbar - datalabels #2770

Closed
sebastianbochan opened this issue Mar 4, 2014 · 6 comments

Comments

@sebastianbochan
Copy link
Contributor

commented Mar 4, 2014

Datalabels seem to not be displayed on the errorbar chart.

http://jsfiddle.net/f8sB9/2/

@cSilas

This comment has been minimized.

Copy link

commented Mar 4, 2014

Is it normal to have just the minimum value that is displayed? Is it not possible to have the min and max?

@ghost

This comment has been minimized.

Copy link

commented Mar 4, 2014

By default the minimum is displayed, however you can override the formatter of the datalabels to show both min and max: http://jsfiddle.net/stephanevanraes/B6Z5w/

Edit: this issue has been fixed, but you have to use both the latest highcharts.js and the latest highcharts-more.js (in my example I only pull the more one from github)

@TorsteinHonsi

This comment has been minimized.

Copy link
Collaborator

commented Mar 5, 2014

Here's the fix demonstrated: http://jsfiddle.net/highcharts/f8sB9/3/

@Andriy-Kulak

This comment has been minimized.

Copy link

commented May 30, 2018

@TorsteinHonsi how would I be able to show the dataLabel for the top of the errorBar? by default, it either shows the bottom dataLabel or both. I just need to show the top one. Thanks!

@TorsteinHonsi

This comment has been minimized.

Copy link
Collaborator

commented Jun 4, 2018

It's a bit ugly, but you can hide the lower labels by simply moving them outside the chart: http://jsfiddle.net/highcharts/f8sB9/7/

@pawelfus

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2018

Alternatively, use formatter, and render only high label: http://jsfiddle.net/BlackLabel/445o3v32/ (note: it uses internal options: this.point.plotY and this.point._plotY which may change between versions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.