Skip to content

Responsive rules in highcharts-stock ignore Stock-only options (e.g. rangeSelector) because Responsive comes from highcharts_core #70

Description

@javipzv

Summary

When using the Python wrapper for Highcharts Stock, I cannot put rangeSelector inside responsive.rules[].chartOptions. The Responsive class in highcharts_stock re-exports the one from highcharts_core, so chartOptions is typed/validated like Core (HighchartsOptions). As a result, Stock-only options (like rangeSelector) are dropped/ignored during serialization, and the browser never receives them.

Steps to Reproduce

  • Create Stock options with a working base range_selector.

  • Add a responsive rule that tries to change rangeSelector for small screens.

  • Serialize and render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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