vicks22
Posts: 10
Joined: Fri Feb 17, 2023 12:56 pm

Legend is getting rendered on chart

Fri Sep 08, 2023 12:00 pm

I am applying following legend properties.

legend: {
verticalAlign: 'top',
align: 'left',
x: 14
}

But legend is getting rendered on bar charts.

How do I shift legends on top of charts.

I tried y: with negative value but no luck.
Attachments
legend_display_issue.PNG
legend_display_issue.PNG (11.59 KiB) Viewed 57 times

jakub.s
Posts: 984
Joined: Fri Dec 16, 2022 11:45 am

Re: Legend is getting rendered on chart

Sun Sep 10, 2023 6:41 pm

Hi,

Thanks for the question!

I've been trying to reproduce this issue, but with no success.

Everything seems to work fine in this example: https://jsfiddle.net/BlackLabel/apxokr5q/

Could you please try to reproduce this in an online code editor like JSFiddle so I can investigate this further and, hopefully, propose a solution?

Best regards!
Jakub
Highcharts Developer

vicks22
Posts: 10
Joined: Fri Feb 17, 2023 12:56 pm

Re: Legend is getting rendered on chart

Thu Sep 21, 2023 2:56 pm

Thank you for the response.
Yes it is working fine now for me also.
The problem was with the margin property under chart. Once I increased the margin it looks good.
Sorry for the delayed reply.

Return to “Highcharts Usage”