Mikhail.Gusev
Posts: 1
Joined: Sat Sep 17, 2022 9:17 pm

dataLabels with point.y < 6 don't show

I have a problem with showing labels if data.y < 6. Here is a code https://jsfiddle.net/x9ja15sr/142/
Guys, Help please to solve it. I have some mock up here https://www.toluna.com/en_US/polls/1005 ... de=results,
but this web site some times falls. I attach also a pic describes how it need to be.
Guys, if data.y === 0, it need to show 0%
Thank's for your help!
Attachments
image-20220526-211603.png
image-20220526-211603.png (138.38 KiB) Viewed 90 times
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: dataLabels with point.y < 6 don't show

Hello,

Welcome to our forum and thank you for contacting us with your question!

In your case, the low value of chart.height was causing this issue. Removing it allows the dataLabel to have enough space to render itself on the chart.

DEMO: https://jsfiddle.net/BlackLabel/231cym7q/

In case of any other questions, do not hesitate to contact us.
Best regards
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”