cstep
Posts: 2
Joined: Thu Oct 07, 2021 8:58 am

Polar chart last label y axis not showing

Quick one hopefully.

I'm making a polar chart in highcharts and the last tick of my chart on the y axis isnt showing. It should be 1-5 but is only showing 1-4. I have set showLastLabel to true for both axis but its still not working.

My suspicion is my series. We have one series object which is the actual data, but we want the legend to show different values, so we have 2 fake series inserted:
series: [{
name: 'Score',
data: [4,5,3,4,5],
pointPlacement: 'on',
showInLegend: false
}, {
name: '0 - Not Important',
data: [],
pointPlacement: 'on',
showInLegend: true
}, {
name: '5 - Very Important',
data: [],
pointPlacement: 'on',
showInLegend: true
}],

I've made a JS fiddle showing the last label not appear:http://jsfiddle.net/e0z9dnoL/12/

Let me know if I need to include more information

Cheers
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Polar chart last label y axis not showing

Hello cstep,

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

Last Y axis label didn't show because there was too little space to render it. Setting labels.allowOverlap property to true should help in this case.
Demo: https://jsfiddle.net/BlackLabel/7wt4m912/
API reference:https://api.highcharts.com/highcharts/y ... lowOverlap

Let me know if that was what you were looking for!
Best regards!
Mateusz Bernacik
Highcharts Developer
cstep
Posts: 2
Joined: Thu Oct 07, 2021 8:58 am

Re: Polar chart last label y axis not showing

Exactly what I needed. Thank you for such a swift response!
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Polar chart last label y axis not showing

You're welcome! In case of any further questions, feel free to contact us again.
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”