dictionary - How to add custom map and custom data to Highmaps? -


i struggling including custom map custom data highmaps. sure it's pretty dumb thing, can't find examples , explanations on web.

i have json file data, , geojson file map. so, this:

        $(function ()          {             $.getjson('http://xxx/data/p_.json', function (data)             {                 // initiate chart                 $('#container').highcharts('map',                 {                     series : [                     {                         data : data,                         mapdata: 'http://www/data/countries.geojson',                         joinby: ['name', 'countries'],                     }]                 });             });         });          

but quite wrong. how add custom mapdata?

thanks help!

there instruction how create custom geojson: http://www.highcharts.com/docs/maps/custom-geojson-maps

in 9. there link jsfiddle show how geojson file should parsed used highcharts mapdata: http://jsfiddle.net/highcharts/xbzxfx2l/

$('#run').click(function () {          var geojson = $.parsejson($('#geojson').val());      // initiate chart     $('#container').slidedown().highcharts('map', {         series: [{             mapdata: geojson         }]     });     }); 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -