kalpanas_techcedence
Posts: 26
Joined: Fri Sep 30, 2022 6:06 am

Highchart Export png

im able to download / export the chart. But axis lines are not perfect. Please find the fiddle url below and help me to resolve it.

https://jsfiddle.net/skalpana_net/po5jak7y/
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Highchart Export png

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

Unfortunatelly, I am not sure, what do you want to show by this chart, so it is hard to suggest to you something clear. What I have found is that the issue is related to your function adjustChartSize(), which is changing the chart height to be a higher value, than the container's height, which is not a proper way of hiding the legend. It is better to not use chart.marginBottom and use legend.enabled to show/hide legend instead of making chart height bigger to hide legend.

Demo: https://jsfiddle.net/BlackLabel/ofqbuxj5/

Regards!
Hubert Kozik
Highcharts Developer
kalpanas_techcedence
Posts: 26
Joined: Fri Sep 30, 2022 6:06 am

Re: Highchart Export png

perfect. thank you Hubert.
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Highchart Export png

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

Return to “Highcharts Usage”