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.

Chart is unknown chart type

See original GitHub issue

After going through a lot of troubles trying to import the angular2-highcharts module in my ionic2 application, I’m now having this error at runtime:

'Chart is unknown chart type'

basically it is raised from initChart.js :

 if (!highchartsService.Highcharts[type]) {
    throw new Error(type + " is unknown chart type.");
}

the highchartsService is an empty object.

Any idea why ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:21

github_iconTop GitHub Comments

2reactions
jmerazhncommented, Apr 18, 2017

Thank you @howtimeflies-io It’s just what was missing! Now what I am going to try is to feed the data from a service rest.

1reaction
howtimeflies-iocommented, Apr 18, 2017

@jmerazhn

Just add a single line bellow the imports.

declare let require: any;
Read more comments on GitHub >

github_iconTop Results From Across the Web

angular2-highcharts error: “Chart is unknown chart type”
I faced this issue a couple of days ago, and after referring to this thread i found a solution and this configuration works...
Read more >
Error: “Chart is unknown chart type” · Issue #166 - GitHub
When I try to load a simple highchart in my Angular 2 app, it always gives me the following error: Here my app.module.ts:...
Read more >
Re: Unknown charttype - QlikView Integrations - Qlik Community
Go to Sheet Properties and choose the Objects tab · In the list, select the chart object that is giving you a headache...
Read more >
Overview | Error Chart | Basic Charts - AnyChart Documentation
On Cartesian Charts​​ Cartesian charts support error bars along the Y-axis. The error() method adds error bars to all points of a series...
Read more >
[SOLVED] Unknown chart type - Excel Help Forum
Here is a chart we use in a presentation. It's just an image but it looks like it was created in Excel and...
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