Highcharts Demo
author(s): Torstein Hønsi
by wergeld
HTML
<script src="http://code.highcharts.com/maps/highmaps.js"></script>
<script src="http://code.highcharts.com/maps/modules/data.js"></script>
<script src="http://code.highcharts.com/maps/modules/drilldown.js"></script>
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<div id="container" style="height: 500px; min-width: 310px; max-width: 800px; margin: 0 auto"></div>
JavaScript
$(function () {
/*
* Highcharts paths for US states. Parsed from http://commons.wikimedia.org/wiki/File:Blank_US_Map.svg
*/
var data1 = [
["1201000000", 6.3],
["1204000001", 4.8],
["1204000003", 5.7],
["1204000005", 6.5],
["1204000007", 5.3],
["1204000009", 6.9],
["1204000011", 5.3],
["1204000013", 5.9],
["1204000015", 6.3],
["1204000017", 7.2],
["1204000019", 5.6],
["1204000021", 5.8],
["1204000023", 6.2],
["1204000027", 7.3],
["1204000029", 8.1],
["1204000031", 6.2],
["1204000033", 6.2],
["1204000035", 9.2],
["1204000037", 5.4],
["1204000039", 6.8],
["1204000041", 6.2],
["1204000043", 7.8],
["1204000045", 6.7],
["1204000047", 8.4],
["1204000049", 7.5],
["1204000051", 11.3],
["1204000053", 7.8],
["1204000055", 7.6],
["1204000057", 6.1],
["1204000059", 5.5],
["1204000061", 7.5],
["1204000063", 5.1],
["1204000065", 5.3],
["1204000067", 6.1],
["1204000069", 6.4],
["1204000071", 6.3],
["1204000073", 5.2],
["1204000075", 7.2],
["1204000077", 5.7],
["1204000079", 8.4],
["1204000081", 6.3],
["1204000083", 7.2],
["1204000085", 6.7],
["1204000086", 7.1],
["1204000087", 3.8],
["1204000089", 5.5],
["1204000091", 4.6],
["1204000093", 8.0],
["1204000095", 5.8],
["1204000097", 6.6],
["1204000099", 6.4],
["1204000101", 7.1],
["1204000103", 6.1],
["1204000105", 7.3],
["1204000107", 8.5],
["1204000109", 4.9],
["1204000111", 8.2],
["1204000113", 5.4],
["1204000115", 6.1],
["1204000117", 5.4],
["1204000119", 5.6],
["1204000121", 5.7],
["1204000123", 7.2],
...