amparorll
Posts: 4
Joined: Fri Nov 26, 2021 12:58 pm

Export Pie chart

Hello,

I'm trying to export a pie chart with a custom legend. The thing is that the legend looks fine but when click on "Download PDF", PNG o JPG the legend looks different, the numeric values are not aligned in the same row than the name
This is what I'm trying

https://jsfiddle.net/ct2m18ph/12/

Could you please let me know what I'm doing wrong?
Thanks in advance
amparorll
Posts: 4
Joined: Fri Nov 26, 2021 12:58 pm

Re: Export Pie chart

Sorry, the correct link with the example is that one:
https://jsfiddle.net/ct2m18ph/15/
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Export Pie chart

Hello,

Thanks for contacting us with your question!

Probably the export server has a problem with CSS, so it doesn't correctly display div with display: flex property.

You can get around this by adding these properties to the div with a value:

Code: Select all

position: absolute;
top: 0;
right: 0;

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

Let me know if you have any further questions!
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
amparorll
Posts: 4
Joined: Fri Nov 26, 2021 12:58 pm

Re: Export Pie chart

It worked!
Thank you!
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Export Pie chart

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

Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”