Skip to content

Special characters appear to break string label format #21124

@bensaufley

Description

@bensaufley

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions