Skip to content

initialConfig in custom tooltip is empty when collapsedSeries are used #5118

@bmanth60

Description

@bmanth60

Description

When new options are provided to the chart and updateOptions is called while there are hidden series, the series data in the initialConfig are cleared

series = this.emptyCollapsedSeries(series)

Steps to Reproduce

  1. console.log chart.w.globals.initialConfig.series with a hidden series
  2. Update the series using chart.updateOptions
  3. console.log chart.w.globals.initialConfig.series with a hidden series

Expected Behavior

I am expecting that initialConfig should always provide unadulterated initial config

Actual Behavior

initialConfig removes data from hidden series

Screenshots

Image

Reproduction Link

https://codepen.io/bmanth60/pen/ogbGpGa

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions