qhuynh
Posts: 10
Joined: Thu Jan 21, 2021 3:52 pm

Exporting issue with paging

Hello,

I have a pie chart with legend. Everything is fine on the chart (1.jpg). But if I export it, the legend is missing. There is an navigation paging and but it only shows the first page (2.jpg).

Please advise.
Attachments
2.jpg
2.jpg (82.16 KiB) Viewed 477 times
1.jpg
1.jpg (62.57 KiB) Viewed 477 times
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Exporting issue with paging

Hi,

Thank you for contacting us with your question!

Could you reproduce your config and data in an online editor such as JSFiddle that we could work on?
Without seeing your code it’s hard to say what could be done. Here you can find a basic template:
https://jsfiddle.net/BlackLabel/fkh5co9s/

Best Regards
qhuynh
Posts: 10
Joined: Thu Jan 21, 2021 3:52 pm

Re: Exporting issue with paging

This is the JSFiddle I just created. It's exactly same what I have on my product, but it shows correctly on the exports (images or PDF).
I compared the version of each js file (including jQuery and all js from Highcharts). They all are same with what I have. But I have no idea why I got paging on the export.

Any idea?

https://jsfiddle.net/quanghuynh/7Lf1wang/1/
qhuynh
Posts: 10
Joined: Thu Jan 21, 2021 3:52 pm

Re: Exporting issue with paging

I created another JSFiddle and added 9 more items into the chart. The problem is there. On the browser, I see all items, but on the export, it shows paging and missing some items.

http://jsfiddle.net/quanghuynh/72a435cf/3/
qhuynh
Posts: 10
Joined: Thu Jan 21, 2021 3:52 pm

Re: Exporting issue with paging

Hello Piotr,

Any update on this issue?

Thanks
qhuynh
Posts: 10
Joined: Thu Jan 21, 2021 3:52 pm

Re: Exporting issue with paging

Please let me know if this is a solution for this issue, or this is something you guys are working on to fix it.
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Exporting issue with paging

Hi

It is related to the scaling of the chart size on different resolutions.

You can change the layout in the basic API options:
https://www.highcharts.com/docs/chart-d ... -and-style
https://api.highcharts.com/highcharts/legend

As well as in the export options:
https://www.highcharts.com/docs/export- ... rted-image
https://api.highcharts.com/highcharts/e ... artOptions

You can find a similar topic here:
viewtopic.php?t=28138

It is also worth checking the scale parameter and adjusting it accordingly:
https://api.highcharts.com/highcharts/e ... 1616427263

Let us know if this solved the problem in your case!

Best Regards
qhuynh
Posts: 10
Joined: Thu Jan 21, 2021 3:52 pm

Re: Exporting issue with paging

Hello Piotr,

The problem is still there. The data on my example is just a few. In some cases, we have a lot of data.
Is there any way that the legend is exported on separate page (in PDF) or multiple images (in PNG, JPEG, ... image)?
piotr.m
Posts: 1433
Joined: Mon Nov 18, 2019 8:15 am

Re: Exporting issue with paging

Hi,

Unfortunately, there is no such option available by default.
A custom configuration would be necessary here:
https://www.highcharts.com/docs/extendi ... highcharts

If you think something like this should be implemented, you can report it on our GitHub as an enhancement:
https://github.com/highcharts/highchart ... new/choose

Kind Regards

Return to “Highcharts Usage”