Skip to content
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

Invalid Area chart SVG generated by offline exporting, caused by specifying fillColor without styled mode #21059

Open
WizardCM opened this issue Apr 24, 2024 · 1 comment

Comments

@WizardCM
Copy link

WizardCM commented Apr 24, 2024

Expected behaviour

Exporting should function without error, even offline.

Actual behaviour

PNG and JPG exports fail, SVG generates a file that produces a visual error and is not correctly rendered.

error on line 1 at column 5767: Attribute fill-opacity redefined

Live demo with steps to reproduce

Demo fiddle: https://jsfiddle.net/jqe9pf05/

Steps:

  1. Specify fillColor on an Area chart with or without alpha (rgb or rgba)
  2. Click the hamburger menu
  3. Click 'Download PNG image' or 'Download JPG image'
  4. Click 'Export SVG vector image'
  5. View the SVG in your browser of choice

Enabling fallback to export server does work around the issue, as does enabling styled mode.

Product version

Highcharts 11.3.0 and above.

Works fine in Highcharts 11.2.0.

Affected browser(s)

Chrome, Firefox

@hubertkozik
Copy link
Member

Hi @WizardCM! Looks to me like a regression, because it worked previously. The idea of a fallback to the export server is a good workaround for this issue until it is fixed.

Workaround: https://jsfiddle.net/BlackLabel/fp9h36vj/

Internal note:
Bisected to 4ef548a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants