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

dynamically updating pie chart options is causing an error #4863

Closed
junedchhipa opened this issue Dec 11, 2024 Discussed in #4860 · 0 comments
Closed

dynamically updating pie chart options is causing an error #4863

junedchhipa opened this issue Dec 11, 2024 Discussed in #4860 · 0 comments

Comments

@junedchhipa
Copy link
Contributor

Discussed in #4860

Originally posted by AmosSzust December 11, 2024
This happens with apexcharts 4.2.0, it doesn't happen with 4.1.0

chartOptions.value = {
            ...chartOptions.value,
            ...{
              labels: response.data.map(
                (sector: theModel) => sector.sector,
              ),
            }
          };

Should render the chart with the relevant data and labels
chart is not shown in the console I see Cannot read properties of undefined (reading '0')
it is related to an array but not sure which array exactly, both labels and series have values.
when downgrading to apexcharts 4.1.0, it works.
I use "vue3-apexcharts": "1.8.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant