mabodokh
Posts: 16
Joined: Mon Oct 29, 2018 2:05 pm

Limit bar height relative to chart

My chart has datalabels that overflow from the top when the difference in data is significant as in the attached image.

Will padding the top somehow help? or perhaps there is a way to limit the bar height relative to the data provided? say have it 80% max height or something like that?
Attachments
My chart
My chart
Capture.PNG (22.8 KiB) Viewed 649 times
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Limit bar height relative to chart

Hi, mabodokh!

You are probably looking for a yAxis.maxPadding property: https://api.highcharts.com/highcharts/yAxis.maxPadding

Best regards!
Rafal Sebestjanski,
Highcharts Team Lead
mabodokh
Posts: 16
Joined: Mon Oct 29, 2018 2:05 pm

Re: Limit bar height relative to chart

rafalS wrote:Hi, mabodokh!

You are probably looking for a yAxis.maxPadding property: https://api.highcharts.com/highcharts/yAxis.maxPadding

Best regards!
Thanks again rafalS for your help it is much appreciated!

Return to “Highcharts Usage”