I am creating a bar chart and I have a logic to update the series data based on categories. For ex: cat1, cat2 on click of cat1 button series data shows data for cat1 ad same for cat2.
Only the values get updated, not the series name
On first render, after clicking on cat1 and cat2 chart renders correctly but second time when i filter and update the series data, cat1 and cat2 both bar renders.