US and LocationTypes

by amrutaJgtp

HTML

<script src="http://code.highcharts.com/maps/highmaps.js"></script>
<script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script>


<div id="container" style="max-width: 1000px" ></div>

JavaScript

$(function () {

    // Prepare demo data
    var data = [{
    		'hc-group':'admin1',
        'hc-key': 'us-wa',
        'hc-a2':'WA',
        'labelrank':0,
        'hasc':'US.WA',
        'woe-id':2347606,
        'state-fips':53,
        'fips':'US53',
        'postal-code':'WA',
        'name':'Washington',
        'country':'United States of America',
        'region':'West',
        'woe-name':'Washington',
        'woe-label':'Washington, US,United States',
        'type':'State',
        'value': 93
    }, {
    		'hc-group':'admin1',
        'hc-key': 'us-ca',
        'hc-a2':'CA',
        'labelrank':0,
        'hasc':'US.CA',
        'woe-id':2347563,
        'state-fips':6,
        'fips':'US06',
        'postal-code':'CA',
        'name':'California',
        'country':'United States of America',
        'region':'West',
        'woe-name':'California',
        'woe-label':'California, US,United States',
        'type':'State',
        'value': 56
    },{
    		'hc-group':'admin1',
        'hc-key': 'us-mi',
        'hc-a2':'MI',
        'labelrank':0,
        'hasc':'US.MI',
        'woe-id':2347581,
        'state-fips':26,
        'fips':'US26',
        'postal-code':'MI',
        'name':'Michigan',
        'country':'United States of America',
        'region':'Midwest',
        'woe-name':'Michigan',
        'woe-label':'Michigan, US,United States',
        'type':'State',
        'value': 40
    },{
    		'hc-group':'admin1',
        'hc-key': 'us-ny',
        'hc-a2':'NY',
        'labelrank':0,
        'hasc':'US.NY',
        'woe-id':2347591,
        'state-fips':36,
        'fips':'US36',
        'postal-code':'NY',
        'name':'New York',
        'country':'United States of America',
        'region':'Northeast',
        'woe-name':'New York',
        'woe-label':'New York, US,United States',
        'type':'State',
        'value': 75
    },{
    		'hc-group':'admin1',
        'hc-key': 'us-tx',
        'hc-a2':'TX',
       ...