question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Highchart modules

See original GitHub issue

Hello and thank you for this great library!

I’m trying to use highchart modules, but cant get any of those to work.

I have this on my sharedmodule

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

And getting this error: Uncaught TypeError: Cannot read property 'defaultOptions' of undefined at exporting.src.js:29

Any ideas?

ng -v
@angular/cli: 1.4.4
node: 7.8.0
os: darwin x64
@angular/animations: 4.4.4
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.4
@angular/compiler-cli: 4.4.4
typescript: 2.2.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Janatbekcommented, Oct 19, 2017

LIke this:?

import highchartsMore from 'highcharts/highcharts-more.src.js';

export function highchartsModules() {
  // apply Highcharts Modules to this array
  return [ exporting, heatmap, treemap, highchartsMore ];
}

and I will have highcharts-more available for me?

0reactions
Janatbekcommented, Oct 20, 2017

Thank you. It worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export module | Highcharts
The exporting module allows your users to download the chart as PDF, PNG, JPG or SVG vector images. It also allows printing the...
Read more >
Data module | Highcharts
The Data module provides options for loading data from external sources, like CSV files, HTML tables or Google Spreadsheets, in a convenient way, ......
Read more >
Highcharts Index
Highcharts JS is a JavaScript charting library based on SVG, with fallbacks to VML and canvas for old browsers. Official website: www.highcharts.com ...
Read more >
Highcharts additional modules usage
Hello, i has some question. I need to build streamgraph, i was import next modules for this specific chart: Code: Select all import...
Read more >
Accessibility module - Highcharts
Every Highcharts license includes our Accessibility module, which helps ensure your charts are as accessible as possible. We use the WCAG 2.1 standard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found