highcharts / highcharts/node-export-server

Text in exported chart is hidden when setting style in chart options

Open
#664 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
369
Forks
266
PR merge metrics
No merged PRs in 30d

Description

I want to report a bug when exporting a chart.
As soon as I start to set fontSize in style options the text is completely missing in the export file.

```javascript
chart: {
type: 'area',
zooming: {
type: 'x'
},
panning: true,
panKey: 'shift',
scrollablePlotArea: {
minWidth: 600
},
style: {
fontSize: '1.1em'
}
},
```

I created a fiddle to reproduce the issue:
https://jsfiddle.net/yrsv310n/2/

In browser the chart looks like this:

![Image](https://github.com/user-attachments/assets/79bdabb2-e171-4829-bd73-30fd86e2419e)

When exporting as png or jpg it looks like this:

![Image](https://github.com/user-attachments/assets/45d21948-a92a-496d-87ce-51c89c87e061)

Export in svg format works.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.