Highmaps label position - Javascript highcharts

Javascript examples for highcharts:Chart Label

Description

Highmaps label position

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highmaps Label Position</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.js"></script> 
      <script type="text/javascript" src="https://code.highcharts.com/highcharts.js"></script> 
      <script type="text/javascript" src="https://code.highcharts.com/maps/modules/map.js"></script> 
      <script type="text/javascript" src="https://code.highcharts.com/mapdata/custom/world.js"></script> 
      <script type="text/javascript">
    window.onload=function(){/*from  w ww . j a v  a 2s  . c  o m*/
var map_chart;
function init_map(){
    map_chart =  new Highcharts.Map({
        chart: {
            type: 'map',
                  renderTo: 'map_container'
        },
        series: [{
            mapData: Highcharts.maps['custom/world'],
            dataLabels: {
                enabled: true,
                format: '{point.name}'
            }
        }]
    });
}
$( document ).ready(function() {
   init_map();
});
    }

      </script> 
   </head> 
   <body> 
      <div id="map_container"> 
      </div>  
   </body>
</html>

Related Tutorials