Skip to content
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

Closed
cvakodobro opened this issue Feb 25, 2021 · 21 comments · Fixed by #3680
Closed

Error when updating series while slice is selected - donut chart #2258

cvakodobro opened this issue Feb 25, 2021 · 21 comments · Fixed by #3680
Labels
bug Something isn't working

Comments

@cvakodobro
Copy link

cvakodobro commented Feb 25, 2021

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".

@karagog
Copy link

karagog commented May 21, 2021

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?

@Androvski93
Copy link

I am using apexchart with Typescript and Angular 12 and I am having the same issue.

@htimran
Copy link

htimran commented Jun 8, 2021

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
Error: attribute d: Expected moveto path command ('M' or 'm'), "null".
Else on other Regions, it is working fine with no errors.
Can anyone help me out on this?

@github-actions
Copy link

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.

@daniiprado
Copy link

daniiprado commented Sep 16, 2021

I am using apexchart with Vue 2 and I am having the same issue.

Captura de Pantalla 2021-09-15 a la(s) 9 46 09 p  m

When I resize the browser or collapse the dashboard sidebar the chart lose data and plotted empty

PjMQWf9SGy

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]
          )
      })
},

@brianlagunas brianlagunas added bug Something isn't working and removed no-issue-activity labels Sep 16, 2021
@brianlagunas
Copy link
Member

This issue has been confirmed! Thanks for reporting it.

@Mangor1no
Copy link

Any new progress on this issue?

@yeongbin-jo
Copy link

Still have this issue.

apexchart==3.28.3
react-apexcharts==1.3.9

@junedchhipa
Copy link
Contributor

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

@yeongbin-jo
Copy link

The same problem is occurring in the latest version, but I will first review whether it is my own problem,
and if it is not my problem, I will post an example code that can reproduce the error.

@1001v
Copy link

1001v commented Feb 5, 2022

Same here. Version 3.33.0.

@1001v
Copy link

1001v commented Feb 5, 2022

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

Please select a data-point and you will see the issue.

@gyoogle
Copy link

gyoogle commented May 27, 2022

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

Same here

@Asmodeios
Copy link

Still having this issue on "apexcharts": "^3.35.3"

@gbermudezjc
Copy link

I'm having this issue using "apexcharts": "^3.33.0" and "vue": "^2.6.12".

@Sabih-KL
Copy link

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

@karthickprasathmb
Copy link

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

Ref: chartjs/Chart.js#10673

@Sabih-KL
Copy link

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

Ref: chartjs/Chart.js#10673

thanks!

@SeanParkTiz
Copy link

SeanParkTiz commented Dec 6, 2022

I am using apexchart with Vue 3 / Typescript and I am having the same issue.

image

@AdinoWayne
Copy link
Contributor

my version "3.33.0" and nuxtjs "2.15.7" This problem still occurs. anyone, please tell me how to fix it?

@Sabih-KL
Copy link

Sabih-KL commented Mar 3, 2023

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

junedchhipa added a commit that referenced this issue Mar 3, 2023
check value original path on pieClicked - fixes #2258
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.