Skip to content

dynamically updating pie chart options is causing an error #4863

Closed
@junedchhipa

Description

@junedchhipa

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions