Comments (8)
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.
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.
Thanks @gregjopa. I just tried it. But it complains another error says 'Parent is not a constructor'.
from ember-highcharts.
Thank you again @gregjopa!!! give me a moment to try it out and get back!
from ember-highcharts.
@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.
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.
Hi @gregjopa, as I verified, your solution is working perfectly in my project. You made my day!!!
from ember-highcharts.
@arthur-zheng good to hear 👍
from ember-highcharts.
Related Issues (20)
- Upgrade Hightcharts to get fix for getDistanceBetweenCirclesByOverlap logic HOT 1
- Cannot read property "forExport" of undefined HOT 3
- Build error with highcharts v7.1.2 in styled mode HOT 1
- Upgrade bootstrap to fix cross-site scripting vulnerability
- How to add support to accessibility? HOT 1
- How to pass an object to Highcharts.setOptions HOT 1
- Series with the same name (`series.name`) are "mysteriously" dropped when chart is re-rendered. HOT 1
- Changing Series changes order HOT 1
- ‘Cannot read property "forExport" of undefined’ when transitioning to a new route. HOT 1
- Replacing xAxis, and yAxis HOT 2
- [Octane] Glimmer component refactor HOT 1
- Modifier manager capabilities deprecating warning HOT 8
- I think v3.2.0 should have been a major version HOT 5
- How can one use Annotation module of highchart using ember-highcharts? HOT 1
- Getting https://assets.highcharts.com/errors/16/ error on EmberJS application HOT 2
- Replace `ember-holy-futuristic-template-namespacing-batman` with `ember-template-imports` HOT 2
- Using custom components in a chart
- Question: Can we use highchart version: 8.0.0 with ember-highchart version: 3.1.0 ? HOT 1
- Release v3.2.2 for assign polyfill deprecation HOT 2
- Error: Highcharts error #17: missingModuleFor: funnel HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-highcharts.