Closed skuske closed 1 year ago
Hello @skuske, thank you for the reporting. We will investigate the issue and come back to you as soon as possible.
Hello @skuske, we have checked and colors in the PDF are rendering according to the asset catalog.
We didn't catch:
The PDF will show a light mode chart
and
exportToPDF always exports a chart in light mode, even if dark mode is on
Could you please describe what did you mean?
Everything looks like works as expected.
Well, I stopped using the PDF export due to this issue and I am now using my own PDF export functionality. I'll close this now, since the PDF export never worked fine for me (see https://github.com/highcharts/highcharts-ios/issues/365)
The PDF export does not work correctly in dark mode. First, it seems that a chart is always generated as a PDF in light mode. So: if dark mode is active before calling the
exportToPDF
function, then the PDF will be generated in the light mode of the chart.However, this produces the following error: if colors from an asset catalogue were used in the diagram, which differ depending on the mode (light / dark), then the diagram is rendered in light mode during the PDF file generation, but the colors are still those of the dark mode (i.e. light axis labels, which are then no longer visible in the light diagram).
This means that the PDF export function only works properly if the diagram was already visible in light mode BEFORE the
exportToPDF
function was called.Steps to reproduce this:
exportToPDF
.I am wondering why the exportToPDF always exports a chart in light mode, even if dark mode is on ...