I'd like to be able to pass a variable into a config object which would be used as the filename prefix when downloading a chart svg image.
Currently, the filename is fixed to something like apexcharts-12a3bcde.svg by this line in modules/Exports.js:
downloadLink.download = 'apexcharts-' + w.globals.cuid + '.svg'
An option named options.chart.id already exists.
So, instead of creating a new one, we can use that and I will have to just change that particular line to use options.chart.id instead of cuid.
Now, chart.id will be used as a filename.
Will be available in 1.5.2 release
Many thanks for sorting this out so quickly, much appreciated.
Is there a way to put some separator symbols like '-' or '_' in the export, because currently these symbols are replaced by 'x'?
Is there a way to put some separator symbols like '-' or '_' in the export, because currently these symbols are replaced by 'x'?
Can anyone fix this problem?
Most helpful comment
Now, chart.id will be used as a filename.
Will be available in 1.5.2 release