Skip to content

Flag Series won't render unless a child of YAxis #307

Open
@hukka

Description

@hukka

Bug or Feature Request?

I expected it to work (so bug) since in plain Highcharts the flags series does not need a reference to any Y axis, but might be a design choice. An example or console warning might be good in that case.

Description

https://github.com/whawker/react-jsx-highcharts/wiki/Series mentions

Note In the vast majority of cases, a series should be wrapped in an Axis component.
but it seems that in every case the Series must be wrapped in the Axis. This makes sense when rendering flags on top of the pane or the series as in the example at https://www.highcharts.com/demo/stock/flags-placement as those need references to the Y axis or the series, but placing on the axis would seem logical outside any Y axis.

How to reproduce

Put a <Series type="flags"> directly as a child of a chart, instead of YAxis.

Live demo demonstrating bug

https://stackblitz.com/edit/base-chart-example-broken-flagsseries?file=MyChart.js
https://stackblitz.com/edit/base-chart-example-working-flagsseries?file=MyChart.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions