-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Arearange serie label is not displayed when onArea:true #14602
Comments
Hi @jloscos Thank you for reporting this issue. It looks like this option works for Simplified demos Internal note |
Should we add the There would be many cases, in which the label cannot be placed inside the area, see: https://jsfiddle.net/BlackLabel/Lvs6argt/ Although, when One more thing is that, sometimes, even though What do you think, @TorsteinHonsi ? |
@jakubjanuchta What is the behavior for Area series or Stacked Area series as the values approach zero? Technically, this doesn't seem any different, but onArea is supported well in those cases. |
@GaryGen As you can see on the demo below, the label disappears when it has no physical place to position (if you change the |
Yes, when
The same is the case for
I think we should try to make this work. We already have it working for stacked area, and an area range is not much different. My guess is that it is just about finding some glitch in the algorithm. Debugging tip for @jakubjanuchta : We know that it works correctly for this area stack: https://jsfiddle.net/highcharts/ouavsq2m/2/ . So compare that to an arearange with the exact same geometry: https://jsfiddle.net/highcharts/ouavsq2m/3/ . Now you can inspect the series-label module and find out what causes the difference. |
Expected behaviour
On an arearange serie, a label with onArea:true is displayed inside the area.
Actual behaviour
The label is not displayed
Live demo with steps to reproduce
https://jsfiddle.net/v73pu4z5/
Product version
Highcharts 8.2.2
Affected browser(s)
Tested on Chrome 86
The text was updated successfully, but these errors were encountered: