Open hayzamjs opened 13 hours ago
I have the following code:
<PieChart cornerRadius={5} outerRadius={sizes.chart.pie.outerRadius} innerRadius={-45} data={selectedChart} cRange={colorRange} key="label" value="value" > <Legend classes={{ root: 'flex', label: 'text-neutral-400 dark:text-neutral-200' }} placement="bottom-left" orientation="horizontal" variant="swatches" slot="legend" /> </PieChart>
When the underlying data selectedChart changes, the pie chart updates, but the legend stays the same, is there a way to force update the legend too?
selectedChart
I have the following code:
When the underlying data
selectedChart
changes, the pie chart updates, but the legend stays the same, is there a way to force update the legend too?