Skip to content

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

@Remolutionary

Description

@Remolutionary

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions