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

Special characters appear to break string label format #21124

Open
bensaufley opened this issue May 6, 2024 · 1 comment
Open

Special characters appear to break string label format #21124

bensaufley opened this issue May 6, 2024 · 1 comment

Comments

@bensaufley
Copy link

bensaufley commented May 6, 2024

Expected behaviour

Passing in either a UTF-8 character like (left single quote) or the escape equivalent \u2019 into a label format template ({value:%b ’%y}) renders labels properly, with value substitution

Actual behaviour

Labels render as template string

Live demo with steps to reproduce

https://codepen.io/bensaufley-the-animator/pen/ExJqzgE?editors=0010

Product version

Noticed this after an update to Highcharts v11. Reproduced in at least latest version, 11.4.1

Affected browser(s)

Reproduced in latest versions of Chrome, Firefox, Safari and Edge on MacOS Sonoma.

Notes

It looks like this is avoidable at least in my case by breaking up the templates: {value:%b} \u2019{value:%y}; but including the apostrophe inline did work in 10.3, so this may be a regression?

@hubertkozik
Copy link
Member

Hi @bensaufley! You're right, it seems to me, that it is a regression.

As a workaround, you can set a normal apostrophe instead of the escape equivalent: https://jsfiddle.net/BlackLabel/zxrsmy1n/

Internal note:
Bisected to: 7477088

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