New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline PDF export always renders annotations strokes as thick grey lines #20002
Comments
@karolkolodziej thanks for the fix. I'm able to get my application working properly. This feels like a bug since all other exporting options work as expected when the AST statements are not present (server exporting for PNG, SVG, and PDF, as well as offline exporting for PNG and SVG). When clicking the link in the console warning, it says:
The tag names and attributes in question are added by highcharts code (or by libraries imported by highcharts), as triggered by expected values in the chart config. Would this be a valid reason to add them to the "allow lists" by default? The point of the warning is to stop potentially malicious behavior, but it's not malicious to build a simple chart config that conforms to the published documentation. |
I'm glad that everything works now! Thank you for sharing this, you are actually right- this should be treated as a bug. 😉 |
Expected behaviour
Offline PDF export should render the plot as it looks on the webpage.
Actual behaviour
Annotation strokes are always rendered as thick grey lines in the PDF offline export.
Live demo with steps to reproduce
https://jsfiddle.net/k7q4ou6y/
Use the chart menu to export as PDF
Product version
Latest at the time of this ticket
v11.1.0 (2023-06-05)
Affected browser(s)
Chrome, Firefox, likely others
The text was updated successfully, but these errors were encountered: