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.

Is is possible to show highmaps and and highcharts in the same page?

See original GitHub issue

Hello ember ninjas,

Recently I am trying to show highmaps in the a ember page which already has multiple highcharts. However after setting up the ember-cli-build.js according to the official guide. like(enabling highcharts and highmaps at the same time):

emberHighCharts: { includeHighCharts: true, includeHighMaps: true }

I got error in the browser console(latest chrome) says:

highmaps.src.js:115Uncaught Error: Highcharts error #16: www.highcharts.com/errors/16 loader.js:171 Uncaught Error: Could not find module "ember-resolver" imported from "my-app/resolver"

My versions: highcharts: 4.2.1, ember-cli: 2.3.0, ember: ~2.3.1, ember-highcharts: 0.4.3 Any ideas? Thank you so much!

Additional Clue If you set includeHighCharts: false, includeHighMaps: true, it displays something.

PS: How to reproduce:

  1. do a ember new my-app to create an empty project
  2. install ember highcharts using ember install ember-highcharts
  3. Insert this code into application.hbs already generated: {{high-charts mode='Map' content=chartData chartOptions=chartOptions}}
  4. run the app see the error

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gregjopacommented, Apr 28, 2016

I just learned that if highcharts is already loaded then highmaps needs to be loaded as a plugin. Here are more details about this: http://www.highcharts.com/docs/maps/getting-started.

You can load highmaps as a plugin using the ‘includeModules’ option. Ex:

var app = new EmberApp(defaults, {
  emberHighCharts: {
    includeHighCharts: true,
    includeModules: [
      'map'
    ]
  }
});

I added a highmaps example to the tests/dummy app in PR #73. Hopefully this example helps you get highmaps working correctly.

0reactions
gregjopacommented, Apr 29, 2016

@arthur-zheng good to hear 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot load Highcharts and Highmaps on the same page
I am building a "dashboard" page in asp.net and am having no success getting both highcharts and highmaps to work on the same...
Read more >
Trouble showing high-maps and high-charts on same page?
I'm having trouble rendering highcharts and highmaps on the same page. At first, I was just getting an error but then I swapped....
Read more >
7.0.1 - highcharts - npm
Highmaps is similar. // var Highcharts = require('highcharts/highstock'); // Load the exporting module, and initialize it.
Read more >
multiple plot with the same x scale-Highcharts - appsloveworld
If you want to use one one chart, you can use linkedTo option to connect axis. If you want more simple charts, you...
Read more >
Maps with highmaps • highcharter - Joshua Kunst
Example from https://www.highcharts.com/demo/maps/category-map. Adding Points. With highcharter is possible add data as points or bubbles. For ...
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