apexcharts.js: Error when updating series while slice is selected - donut chart
Bug report
Codepen
https://codepen.io/cvakodobro/pen/poNpQNX
To replicate the error just select slice and click randomize button. You will see an error in the console log.
Explanation
- What is the behavior you expect?
No error when updating series while slice is selected.
- What is happening instead?
An error is thrown every time you update the series while a slice is selected. I’m experiencing this issue using vue-apexchart but I’ve noticed that the same issue happens with JS apexchart.
- What error message are you getting?
Error: <path> attribute d: Expected moveto path command ('M' or 'm'), "null".
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 8
- Comments: 21 (3 by maintainers)
Commits related to this issue
- check value original path on pieClicked - fixes #2258 — committed to AdinoWayne/apexcharts.js by AdinoWayne a year ago
- Merge pull request #3680 from AdinoWayne/main check value original path on pieClicked - fixes #2258 — committed to apexcharts/apexcharts.js by junedchhipa a year ago
If anyone using next js, adding
swcMinify: falsein next.config.js makes it work.Ref: https://github.com/chartjs/Chart.js/issues/10673
thanks!
still having issues [ “apexcharts”: “^3.36.0”, “react-apexcharts”: “^1.4.0”]
This issue has been confirmed! Thanks for reporting it.