Apexcharts.js: Expose export filename as definable property on config object

Created on 12 Sep 2018  路  5Comments  路  Source: apexcharts/apexcharts.js

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'

Most helpful comment

Now, chart.id will be used as a filename.
Will be available in 1.5.2 release

All 5 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rcoundon picture rcoundon  路  3Comments

EroTiXx picture EroTiXx  路  3Comments

maasha picture maasha  路  3Comments

thellimist picture thellimist  路  3Comments

felixalguzman picture felixalguzman  路  3Comments