- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when updating series while slice is selected - donut chart #2258
Comments
I am also seeing this error under similar circumstances (when calling updateOptions() on a chart that has a slice selected). The donut chart appears to be working fine otherwise, but spams the following error: Error: attribute d: Expected moveto path command ('M' or 'm'), "null". I'm going to assume I can safely ignore this, because it does appear to be working fine despite the error. But maybe it indicates a bug somewhere in the code? |
I am using apexchart with Typescript and Angular 12 and I am having the same issue. |
I am using ApexChart with React Js, and I am facing this error just with the region change to the UK, and the graph is not showing correctly and throws this error |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am using apexchart with Vue 2 and I am having the same issue. When I resize the browser or collapse the dashboard sidebar the chart lose data and plotted empty data: () => ({
chart: {
series: [0, 0, 0],
chartOptions: {
chart: {
type: 'donut',
},
legend: {
position: 'bottom',
},
colors: ['#1ab7ea', '#0084ff', '#39539E'],
labels: [
'Label 1',
'Label 2',
'Label 3',
],
responsive: [
{
breakpoint: 480,
options: {
legend: {
fontSize: '10px',
},
},
},
],
},
},
}),
mounted() {
this.api
.get()
.then((response) => {
this.$refs.chart.updateSeries(
response.data.chart // => [33, 34, 33]
)
})
}, |
This issue has been confirmed! Thanks for reporting it. |
Any new progress on this issue? |
Still have this issue. apexchart==3.28.3 |
In the original Codepen https://codepen.io/cvakodobro/pen/poNpQNX provided by @cvakodobro, the issue doesn't happen with the latest version 3.33.0 |
The same problem is occurring in the latest version, but I will first review whether it is my own problem, |
Same here. Version 3.33.0. |
Please select a data-point and you will see the issue. |
Same here |
Still having this issue on "apexcharts": "^3.35.3" |
I'm having this issue using "apexcharts": "^3.33.0" and "vue": "^2.6.12". |
still having issues [ "apexcharts": "^3.36.0", "react-apexcharts": "^1.4.0"] |
If anyone using next js, adding |
thanks! |
my version "3.33.0" and nuxtjs "2.15.7" This problem still occurs. anyone, please tell me how to fix it? |
swcMinify: false in next.config.js |
check value original path on pieClicked - fixes #2258
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
No error when updating series while slice is selected.
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.
Error: <path> attribute d: Expected moveto path command ('M' or 'm'), "null".
The text was updated successfully, but these errors were encountered: