Treemap textShadow of dataLabels #5849

Closed
PaulDalek opened this Issue Oct 20, 2016 · 1 comment

Projects

None yet

2 participants

@PaulDalek

Behaviour

In Highcharts v5.0.0 text shadows of data labels in treemap exported to PNG, JPEG or PDF looks duplicated. When exporting to SVG shadow does not appear. In the previous version (v4.2.7) text shadows look normal. Probably related to #3649.

Live demo with steps to reproduce

http://jsfiddle.net/u1vud03h/ - v5.0.0
http://jsfiddle.net/u1vud03h/1/ - v4.2.7

@TorsteinHonsi TorsteinHonsi changed the title from Treemap textShdow of dataLabels to Treemap textSahdow of dataLabels Oct 21, 2016
@TorsteinHonsi TorsteinHonsi changed the title from Treemap textSahdow of dataLabels to Treemap textShadow of dataLabels Oct 21, 2016
@TorsteinHonsi
Collaborator

Thanks for reporting!

It's not specific to tree maps, happens in general: http://jsfiddle.net/highcharts/m0no3exh/

It has probably got to do with PhantomJS and how it handles scaling the export.

Internal note:
Under any circumstance, it will probably be a good idea, both because of performance and simplicity, to replace the text shadow polyfill with a simple, underlying text element with greater stroke. When we first implemented the text shadow polyfill we used more fuzzy shadows, so that was not an option.

@TorsteinHonsi TorsteinHonsi added the Bug label Oct 21, 2016
@TorsteinHonsi TorsteinHonsi added this to the 5.0.2 milestone Oct 21, 2016
@TorsteinHonsi TorsteinHonsi added a commit that closed this issue Nov 18, 2016
@TorsteinHonsi TorsteinHonsi Added now CSS custom property, `textOutline`, and at the same time re…
…moved the `textShadow` shim. Closes #5849.
7ba2913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment