apexcharts.js
apexcharts.js copied to clipboard
Can't export CSV getting errror "i.split is not a function" when series name is an array
Description
Steps to Reproduce
- Open sandbox
- click toolbox
- click Download CSV
Expected Behavior
Downloads CSV
Actual Behavior
Error in console: "i.split is not a function"
Screenshots

Reproduction Link
https://codesandbox.io/s/bitter-browser-5z3qc8
I'm having the same error when series name is number:
https://codepen.io/andreabrioschi/pen/PoRNXKr
@ordago Why are you setting the name of the series to an array? It should be a string. The series name is not expecting an array.
@AndreFra96 the name is expecting a string, not a number.
@brianlagunas I remember seeing in the docs somewhere. Using an array for series whose name were too long would place the second item on the array in a new line.
@ordago I was unable to find any code that handled the name as an array. If you can find that doc, I would appreciate it. It's possible is was a feature that wasn't implemented fully.
hey @brianlagunas, maybe I mixed series names with categories
https://apexcharts.com/docs/multiline-text-and-line-breaks-in-axes-labels/
@ordago yeah, it looks like it. Glad we figured it out.