react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

Changing chart options do not update the rendered chart

Open Pavinati opened this issue 4 years ago • 1 comments

Changing options won't trigger a re-render with updated options

minimal codepen example: https://codepen.io/Pavinati/pen/BadKYPr

Pavinati avatar Oct 18 '21 14:10 Pavinati

Ran into the same issue. This is actually a big pain point of react apexcharts. Current workaround (super hacky) was just to do add chart-${Math.random()} to the id key in the chart options object "forcing" a re-render of the options everytime.

Blackglade avatar Nov 11 '21 16:11 Blackglade