Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highmaps not working! #426

Closed
PhilipAdservice opened this issue Jan 4, 2016 · 7 comments
Closed

highmaps not working! #426

PhilipAdservice opened this issue Jan 4, 2016 · 7 comments

Comments

@PhilipAdservice
Copy link

Hi again.
I tried to use the example code to get a map, but i get a chart and not a map ?
Am i missing an import or is there an error in the example code?

@MattSidor
Copy link

Can you post your source code for us in a plunkr or jsfiddle?

@PhilipAdservice
Copy link
Author

https://jsfiddle.net/2bdjqk92/

This is the example code, from the project, which i can't seem to get to work..
I tried in my own project, but here i got a chart.
I'm using grunt and i've installed highcharts using bower and added some imports:

<script src="bower_components/highcharts-ng/dist/highcharts-ng.js"></script>
<script src="bower_components/highcharts-ng/dist/highcharts-ng.min.js"></script>

<script src="http://code.highcharts.com/adapters/standalone-framework.js"></script>

<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/maps/modules/map.js"></script>
<script src="http://code.highcharts.com/maps/modules/data.js"></script>
<script src="http://code.highcharts.com/modules/heatmap.js"></script>
<script src="http://www.highcharts.com/samples/data/maps/world.js"></script>
<script src="http://code.highcharts.com/mapdata/custom/world.js"></script>

As you can see i've also tried to add the standalone framework, but with no luck.. :(
In my controller i simply setup a config:
var countries = {
europe: 'France, Germany, Russia',
asia: 'Japan, China'
};

this.config = {
options: {
legend: {
enabled: false
},
plotOptions: {
map: {
mapData: Highcharts.maps['custom/world'],
joinBy: ['name']
}
},
},
chartType: 'map',
title: {
text: 'map example'
},
series: [
countries
]
};

@pablojim
Copy link
Owner

Does the example here: http://rawgit.com/pablojim/highcharts-ng/master/example/maps/example.html work for you?

@PhilipAdservice
Copy link
Author

Yes.
So do you have any ideas to what could be wrong?
Am i missing an import, or am i using a wrong version ?

@pablojim
Copy link
Owner

pablojim commented Feb 2, 2016

Not sure. I'd take the example that works and change it pice by piece to match your desired result.

@pablojim pablojim closed this as completed Feb 2, 2016
@cyril-blanco
Copy link

For the next people landing here: this issue is probably not related to highcharts/highcharts-ng. In the fiddle, angular is outputting errors and doesn't even start due to wrong include order (and maybe more)

@rishijoshi
Copy link

rishijoshi commented Aug 8, 2017

The below error shows up with the example.
http://rawgit.com/pablojim/highcharts-ng/master/example/maps/example.html
Uncaught TypeError: angular.module(...).component is not a function
at highcharts-ng.min.js:8
at highcharts-ng.min.js:8

Does the highcharts-ng have support for map-bubbles?
Would maps work with highcharts v4.2.6 (2016-08-02) and angular v1.3.2 and highcharts-ng v0.0.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants