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
- Go to https://codesandbox.io/s/react-apex-chart-export-bug-rry6xp
- Check apexchart is on version 3.35.3
- Uncheck Series 2
- Export as CSV -> Success!
- Switch apexchart version to 3.34.4
- Uncheck Series 2
- 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
Reproduction Link
https://codesandbox.io/s/react-apex-chart-export-bug-rry6xp?file=/src/Chart.jsx