FusionCharts - Global population map by continent - Showing value as part of the entity label

Created using FusionCharts Suite XT - www.fusioncharts.com

by FusionCharts

HTML

<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<!-- 
World population map using legend with icons, indicating fized data range. This example shows values as part of the entity label

The attributes used here are 

# labelSepChar
# includeValueInLabels
-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var populationMap = new FusionCharts({
    type: 'world',
    renderAt: 'chart-container',
    width: '600',
    height: '400',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Global Population",
        "theme": "fusion",
        "formatNumberScale": "0",
        "numberSuffix": "M",
        "showLabels": "1",
        "labelSepChar": ": ",
        "includeValueInLabels": "1"
      },
      "colorrange": {
        "color": [{
            "minvalue": "0",
            "maxvalue": "100",
            "code": "#D0DFA3",
            "displayValue": "< 100M"
          },
          {
            "minvalue": "100",
            "maxvalue": "500",
            "code": "#B0BF92",
            "displayValue": "100-500M"
          },
          {
            "minvalue": "500",
            "maxvalue": "1000",
            "code": "#91AF64",
            "displayValue": "500M-1B"
          },
          {
            "minvalue": "1000",
            "maxvalue": "5000",
            "code": "#A9FF8D",
            "displayValue": "> 1B"
          }
        ]
      },
      "data": [{
          "id": "NA",
          "value": "515"
        },
        {
          "id": "SA",
          "value": "373"
        },
        {
          "id": "AS",
          "value": "3875"
        },
        {
          "id": "EU",
          "value": "727"
        },
        {
          "id": "AF",
          "value": "885"
        },
        {
          "id": "AU",
          "value": "32"
        }
      ]
    }
  }).render();
});