Coder Social home page Coder Social logo

Comments (8)

gregjopa avatar gregjopa commented on August 17, 2024 2

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.

from ember-highcharts.

gregjopa avatar gregjopa commented on August 17, 2024

Can you try changing your setup in ember-cli.build.js to:

emberHighCharts: { includeHighCharts: false, includeHighMaps: true }

The includeHighMaps option should automatically include highCharts too. For example. the dummy app uses highcharts and highstock and only highstock needs to be enabled: https://github.com/ahmadsoe/ember-highcharts/blob/master/ember-cli-build.js.

from ember-highcharts.

arthur-zheng avatar arthur-zheng commented on August 17, 2024

Thanks @gregjopa. I just tried it. But it complains another error says 'Parent is not a constructor'.
screen shot 2016-04-28 at 11 09 09 am

from ember-highcharts.

arthur-zheng avatar arthur-zheng commented on August 17, 2024

Thank you again @gregjopa!!! give me a moment to try it out and get back!

from ember-highcharts.

SSS2557 avatar SSS2557 commented on August 17, 2024

@gregjopa , just added a comment to the PR.

I had tried this out but thought we also had to include highmaps.

I see highcharts/modules/map.js and highcharts/highmaps.js

However, this only works when only map is included as a module

from ember-highcharts.

gregjopa avatar gregjopa commented on August 17, 2024

Thanks for the feedback. I updated the README in the PR based on your comment.

If you just need highmaps only then use the following:

emberHighCharts: { 
  includeHighCharts: false, 
  includeHighMaps: true 
}

If you need to use both highcharts and highmaps then use the following:

emberHighCharts: {
  includeHighCharts: true,
  includeModules: [
    'map'
  ]
}

from ember-highcharts.

arthur-zheng avatar arthur-zheng commented on August 17, 2024

Hi @gregjopa, as I verified, your solution is working perfectly in my project. You made my day!!!

from ember-highcharts.

gregjopa avatar gregjopa commented on August 17, 2024

@arthur-zheng good to hear 👍

from ember-highcharts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.