Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting CSV #54

Closed
mshez opened this issue Apr 19, 2018 · 2 comments
Closed

Exporting CSV #54

mshez opened this issue Apr 19, 2018 · 2 comments
Labels

Comments

@mshez
Copy link

mshez commented Apr 19, 2018

Im using the LoadExporting which works fine for PNG,JPEG,PDF.
I have read the documentation for CSV here
https://api.highcharts.com/highcharts/exporting.csv
Steps i did which wont work with vue charts:

  1. Added simply the CDN they provided in fiddle in index.html (Error Highcharts undefined)
    2.Imported the export-data.js where i have used the charts (No errors but still dosnt shows the export csv)
@mshez
Copy link
Author

mshez commented Apr 19, 2018

I loaded export-data.js here and it works fine.
https://codepen.io/shezk/pen/jxEbvx
while importing the the same script in vue component wont work see example:

import Highcharts from 'highcharts'
import 'highcharts/modules/export-data'
import loadExporting from 'highcharts/modules/exporting'
import loadHighchartsMore from 'highcharts/highcharts-more'
import loadHighchartsNoDataToDisplay from 'highcharts-no-data-to-display'
loadExporting(Highcharts)
loadHighchartsMore(Highcharts)
loadHighchartsNoDataToDisplay(Highcharts)

@mshez
Copy link
Author

mshez commented Apr 19, 2018

I made it work. seems like i was importing export-data.js before exporting and was not using
import Highcharts from 'highcharts'
import loadExporting from 'highcharts/modules/exporting'
import loadExportData from 'highcharts/modules/export-data'
import loadHighchartsMore from 'highcharts/highcharts-more'
import loadHighchartsNoDataToDisplay from 'highcharts-no-data-to-display'

loadExporting(Highcharts)
loadExportData(Highcharts)
loadHighchartsMore(Highcharts)
loadHighchartsNoDataToDisplay(Highcharts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants