Skip to content

Labels font size requires string #22124

@sinnbeck

Description

@sinnbeck

Expected behaviour

When setting labels font size the API docs says it supports a number. But that does not work in firefox. For it to work, you need to set it to '12px' for instance. It does work in chrome

https://api.highcharts.com/highcharts/xAxis.labels.style.fontSize

Actual behaviour

I would expect that it works the same in both browsers, and that it follows the API docs.

Live demo with steps to reproduce

https://jsfiddle.net/tkmv5wz3/

Product version

Latest

Affected browser(s)

Firefox

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions