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

Most upvoted comments

If anyone using next js, adding swcMinify: false in next.config.js makes it work.

Ref: https://github.com/chartjs/Chart.js/issues/10673

If anyone using next js, adding swcMinify: false in next.config.js makes it work.

Ref: chartjs/Chart.js#10673

thanks!

still having issues [ “apexcharts”: “^3.36.0”, “react-apexcharts”: “^1.4.0”]

This issue has been confirmed! Thanks for reporting it.