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 functionality #126

Closed
ghost opened this issue Dec 2, 2016 · 10 comments
Closed

Exporting functionality #126

ghost opened this issue Dec 2, 2016 · 10 comments

Comments

@ghost
Copy link

ghost commented Dec 2, 2016

I hate to open an issue for this but could someone PLEASE help tell me how to use the exporting feature that exists on Highcharts? Normally when you add exporting: {enabled: true} the small menu shows up in the corner and you can select which option you would like to export. There are a few other ways to enable this normally, such as with the 'navigation' attribute, but I can't seem to get the dropdown/exporting feature to display/work.

I had asked in another issue whether this was a feature in this module and was told simply 'yes' and the issue was closed. Now, I understand that this area should be for issues only really but I have no way of contacting someone who knows this module other than on here.

So, please, before you close this 'issue', could you please please possibly briefly show me how to use that feature with this module or at least point me in the right direction. I have used it many times in the past without an Angular 2 module, but can't seem to get it going in here.

This is an incredible product for Angular 2 and Highcharts and I want to make the most of it so I am just asking kindly for a little bit of help.

Thank you!

@chris-house
Copy link

if you want to cheat you probably can put this script tag on your html page

<script src="http://code.highcharts.com/modules/exporting.js"></script>

@chris-house
Copy link

@jbsheebs check out https://github.com/gevgeny/angular2-webpack-starter-and-angular2-highcharts/blob/master/src/app/home/home.component.ts

and see how he imports the 3d package. look at his comments on how to find other modules.

@chris-house
Copy link

and because Im feeling nice:

import * as Highcharts from 'highcharts';
import * as HichartsExporting from 'highcharts/modules/exporting';

HichartsExporting(Highcharts);
@Component({
    selector: 'chart-widget',
    styleUrls: ['./chart-widget.component.scss'],
    templateUrl: './chart-widget.component.html'
})

@gevgeny
Copy link
Owner

gevgeny commented Dec 4, 2016

@jbsheebs did the example above help you ?

@chris-house
Copy link

@gevgeny, I confirmed this works
image

@gevgeny gevgeny closed this as completed Dec 6, 2016
@ghost
Copy link
Author

ghost commented Dec 6, 2016 via email

@lebnic
Copy link

lebnic commented May 8, 2017

I wrote

const Highcharts = require('../../../../../../node_modules/highcharts');
const HighchartsMore = require('../../../../../../node_modules/highcharts/highcharts-more')(Highcharts);
const HichartsExporting = require('../../../../../../node_modules/highcharts/modules/exporting')(Highcharts);

@Component({

@avanithikab
Copy link

Print icon is not working for me. Could you please elaborate the answer.

@illsio
Copy link

illsio commented Feb 23, 2018

Hi, still struggling very much with the implementation of the import function.
Using 'angular-highcharts' (https://github.com/cebor/angular-highcharts/blob/4/README.md), Versions are angular >=5.0.0 and highcharts >=6.0.0 as required.

import * as Highcharts from 'highcharts'; import HichartsExporting from 'highcharts/modules/exporting.src'; HichartsExporting(Highcharts);

And getting:

TypeError: exporting_src_1.default is not a function

@illsio
Copy link

illsio commented Mar 5, 2018

I personally got it working ....
See: cebor/angular-highcharts#139 (comment)

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

No branches or pull requests

5 participants