Skip to content

Cannot Export to CSV if series is not selected -> Possible breaking change between 3.35.3 and 3.35.4? #3944

@tchari

Description

@tchari

Description

It looks like there was some change between 3.35.3 and 3.35.4 that made it so exporting a line chart via CSV after deselecting a series throws a Type Error.

Steps to Reproduce

  1. Go to https://codesandbox.io/s/react-apex-chart-export-bug-rry6xp
  2. Check apexchart is on version 3.35.3
  3. Uncheck Series 2
  4. Export as CSV -> Success!
  5. Switch apexchart version to 3.34.4
  6. Uncheck Series 2
  7. Export as CSV -> Sadness :(

Expected Behavior

A CSV, excluding the unselected series, is downloaded

Actual Behavior

Type Error: Cannot read properties of undefined (reading 'y') is thrown

Screenshots

image image

Reproduction Link

https://codesandbox.io/s/react-apex-chart-export-bug-rry6xp?file=/src/Chart.jsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions