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

boxplot chart is not working #61

Closed
prashuMishra opened this issue Sep 14, 2017 · 6 comments
Closed

boxplot chart is not working #61

prashuMishra opened this issue Sep 14, 2017 · 6 comments

Comments

@prashuMishra
Copy link

I am trying to create boxplot chart. but it is throwing error.

Highcharts error #17: www.highcharts.com/errors/17
at Object.a.error (highcharts.js:10)
at a.Chart.initSeries ....

i have imported chartmodule on my appcomponent:
import { ChartModule } from 'angular-highcharts';
and Chartmodule injected into import array.

@cebor
Copy link
Owner

cebor commented Sep 14, 2017

I think you have to load some extra stuff, see: https://github.com/cebor/angular-highcharts#using-highcharts-modules

@prashuMishra
Copy link
Author

i have added the below three lines in my appmodule

import { Highcharts } from 'angular-highcharts';
import exporting from 'highcharts/modules/exporting.src.js';
exporting(Highcharts)

now error is change "Cannot read property 'defaultOptions' of undefined
at exporting.src.js:29"

@cebor
Copy link
Owner

cebor commented Sep 14, 2017

You have to load the "more" or some other module.

But strange that the "exporting" module does not work.

@alextroto
Copy link

Same issue with guage.
I don't really understand how should I import highcharts-more.
@prashuMishra : did u solve it?
Thx,
Alex

@prashuMishra
Copy link
Author

prashuMishra commented Oct 3, 2017

Yes @alextroto it has been resolved at my end.. below code may resolve your problem too.

declare var require: any;
const Highcharts = require('highcharts/highcharts');
const HighchartsMore = require('highcharts/highcharts-more');
HighchartsMore(Highcharts);

@alextroto
Copy link

Worked !
Thanks a lot @prashuMishra

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

3 participants