FusionCharts - Data-driven US Map showing sales by states, in JavaScript

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>
<!-- 
Data-driven US Map, showing sales by state. Interactive legend slider allows change of value range.
-->

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

JavaScript

FusionCharts.ready(function() {
  var salesByStateChart = new FusionCharts({
    type: 'usa',
    renderAt: 'chart-container',
    width: '600',
    height: '400',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Annual Sales by State",
        "subcaption": "Last year",
        "entityFillHoverColor": "#cccccc",
        "numberPrefix": "$",
        "showLabels": "1",
        "theme": "fusion"
      },
      "colorrange": {
        "minvalue": "920000",
        "startlabel": "Low",
        "endlabel": "High",
        "code": "#e44a00",
        "gradient": "1",
        "color": [{
            "maxvalue": "56580000",
            "displayvalue": "Average",
            "code": "#f8bd19"
          },
          {
            "maxvalue": "97400000",
            "code": "#6baa01"
          }
        ]
      },
      "data": [{
          "id": "HI",
          "value": "3189000"
        },
        {
          "id": "DC",
          "value": "2879000"
        },
        {
          "id": "MD",
          "value": "33592000"
        },
        {
          "id": "DE",
          "value": "4607000"
        },
        {
          "id": "RI",
          "value": "4890000"
        },
        {
          "id": "WA",
          "value": "34927000"
        },
        {
          "id": "OR",
          "value": "65798000"
        },
        {
          "id": "CA",
          "value": "61861000"
        },
        {
          "id": "AK",
          "value": "58911000"
        },
        {
          "id": "ID",
          "value": "42662000"
        },
        {
          "id": "NV",
          "value": "78041000"
        },
        {
          "id": "AZ",
          "value": "41558000"
        },
        {
          "id": "MT",
          "value": "62942000"
        },
        {
          "id": "WY",
          "value": "78834000"
        },
        {
          "id": "UT",
          "value": "50512000"
        },
        {
          "id": "CO",
          "value":...