Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#664 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript, node.js
Domain
backend

Research direction

Reproduce the issue with the linked JavaScript fiddle, comparing PNG and JPG output with SVG while chart.style.fontSize is set to 1.1em. Trace the export-server rasterization path and verify that chart text is visible in the generated PNG and JPG without breaking SVG export.

Written by the indexing model from the issue text.

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.

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

When exporting as png or jpg it looks like this:

Image

Export in svg format works.

Dominant language
JavaScript
Stars
368
Forks
265
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from highcharts/node-export-server

All issues in highcharts/node-export-server

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.