Skip to content

"hidden" flag on series does not hide the series on render #5213

@martin-ecatch

Description

@martin-ecatch

Description

Series that have the "hidden" flag set to true are still rendered in a line chart.
This bug appeared in version 5.10.4 (it works flawlessly in 5.10.3).

Steps to Reproduce

  1. Create a line chart with multiple series
  2. Set the "hidden" flag on some series to false
  3. Render the chart

Expected Behavior

Only render the series that are not "hidden"

Actual Behavior

You will see all series rendered in the chart. You will also see the hidden series' labels dimmed, which confirms that the "hidden" flag is present and that it does something.

Screenshots

Image

Reproduction Link

This shows multiple series. Half of them should be hidden, but all of them are rendered in the chart.
https://codesandbox.io/p/devbox/react-basic-example-forked-czgd8h?workspaceId=ws_WJLdvWLykSPYYPCutRtykc

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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