You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I created an issue in react-apexcharts's repository, but I'm recreating it here, since this part of the project seems more active, and I don't know whether the bug is related to react-apexcharts or apexcharts)
If I have an options object inside a component, with a label formatter, the chart will not update. Defining the options object OUTSIDE of the component does not trigger the bug.
In my project this started happening after bumping apexcharts from 4.4.0 to 4.6.0, but in codepen it seems like it doesn't matter which version of apexcharts you use.
constoptions={plotOptions: {pie: {donut: {labels: {show: true,total: {show: true,label: "",//adding this will enable the bugformatter: ()=>{return"Any formatter will enable the bug";}}}}}},};
Uh oh!
There was an error while loading. Please reload this page.
Description
(I created an issue in
react-apexcharts
's repository, but I'm recreating it here, since this part of the project seems more active, and I don't know whether the bug is related toreact-apexcharts
orapexcharts
)If I have an
options
object inside a component, with a label formatter, the chart will not update. Defining theoptions
object OUTSIDE of the component does not trigger the bug.In my project this started happening after bumping
apexcharts
from4.4.0
to4.6.0
, but in codepen it seems like it doesn't matter which version ofapexcharts
you use.apexcharts version:
4.7.0
react-apexcharts version:
1.7.0
Steps to Reproduce
options
object insideplotOptions.pie.donut.labels.total.formatter
donut
Expected Behavior
It should be possible to update the data and have the donut chart update
Actual Behavior
The donut chart stops updating, and will only update on window resize
Screenshots
This screenshot makes more sense if you open the codepen link
Reproduction Link
https://codepen.io/tormodaase/pen/raaJbYB
The text was updated successfully, but these errors were encountered: