Skip to content

dataLabels.enabledOnSeries works opposite to expectation #824

@forenpm

Description

@forenpm

Codepen

https://codepen.io/anon/pen/xvPRXL

Explanation

The chart has 2 series (0 & 1 index).

dataLabels: {
    enabled: true,
    enabledOnSeries: [0]
}
  • Expected: Series 1 shows labels
  • Actual: Series 2 shows labels

You can also modify the enabledOnSeries array to: [0, 1] to see that no labels are shown. [ ] shows all labels (as expected).
This behavior is opposite to what is expected. It's as if the bool logic is swapped.

Changing enabled to false also does not change the desired behavior.

#697 is related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions