Skip to content

updateOptions does not update X-Axis Category Labels #5067

@benmusson

Description

@benmusson

Description

When attempting using updateOptions to change the category labels of an X-Axis, the category labels do not update.

Steps to Reproduce

  1. Render a Radar chart and define xaxis.categories as an array of labels.
  2. Call chart.updateOptions() and pass a new array of labels for xaxis.categories.

Expected Behavior

The chart should render with new category labels.

Actual Behavior

The original labels are retained, and nothing changes visually.

Reproduction Link

Version 4.5.0 (WORKING)
https://codepen.io/benmusson/pen/zxGeQZm

Version 4.7.0 (BROKEN)
https://codepen.io/benmusson/pen/Eajrzap

Other Information

I think this might be related to #5022?

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