Bigous / ng2-highcharts

Angular2 library to use Highcharts out of the box
59 stars 23 forks source link

Highmaps #71

Closed moniuch closed 7 years ago

moniuch commented 7 years ago

Please provide instructions how to display json data over a specific map

Bigous commented 7 years ago

Hi, look at my running example with stock, maps, and charts all together.

But the basics is to follow the highcharts documentation for version 4.x.x

moniuch commented 7 years ago

It is not that simple with maps. Looking at this example http://jsfiddle.net/gh/get/library/pure/highslide-software/highcharts.com/tree/master/samples/mapdata/custom/world Would you at least tell me how I should get a reference to the custom/world map in an angular-cli app, please?

Bigous commented 7 years ago

Hi @moniuch ,

The example I linked you is using highmaps with a custom germany map.

To facilitate things I just pushed a new repository here on github using the first link you gave to geojsons to get the world.geo.json and data from the fiddle that you linked.

I had to copy the json to my project and not reference it directly because sadly the original repository does not have the CORS enabled.

Look at the last commit to see how I did the implementation.

On the README.md I put a session which describes the steps to generate the project from the beginning.

If that was what you where looking for, please close the issue.

moniuch commented 7 years ago

Beauty! Thank you so much!