#linkMap {
/*min-width: 360px;
max-width: 650px;*/
min-width: 300px;
max-width: 650px;
margin: 0 auto;
}
/*#highcharts-information-region-0 + .highcharts-container {
min-height: 600px !important;
}
#highcharts-information-region-0 + div {
min-height: 600px !important;
}
.highcharts-container {
min-height: 600px !important;
}*/
caption {
padding-bottom: 15px;
font-family: 'Lato';
font-size: 1.2em;
color:#555;
}
table {
font-family: 'Lato';
font-size: 12pt;
border-collapse: collapse;
border: 1px solid #EBEBEB;
margin: 10px auto;
text-align: center;
width: 100%;
}
table tr:nth-child(odd) {
background-color: #fff;
}
table tr:nth-child(even) {
background-color: #FCF9F9;
}
th {
font-weight: 600;
padding: 10px;
}
.highcharts-background {
fill: transparent;
}
/*body{
background: url("https://images.unsplash.com/photo-1463780324318-d1a8ddc05a11") no-repeat center center fixed;
}*/
.highcharts-title {
font-family: 'Lato', sans-serif !important;
}
.highcharts-legend {
font-family: 'Lato', sans-serif !important;
display: none;
}
.highcharts-axis-labels {
font-family: 'Lato', sans-serif !important;
}
.highcharts-xaxis-labels {
font-family: 'Lato', sans-serif !important;
}
.highcharts-axis-title{
font-family: "Lato", sans-serif;
font-size: 16px;
font-weight: bold;
}
/* hamburger menu */
.highcharts-contextbutton{
display: none;
}
Highcharts.chart('linkMap', {
chart: {
type: 'tilemap',
inverted: true,
height: '95%'
},
accessibility: {
description: "Map that links to a region's data tables."
},
title: {
text: 'Select a region to view its data.',
style: {
fontWeight: "bold"
}
},
xAxis: {
visible: false
},
yAxis: {
visible: false
},
colorAxis: {
dataClasses: [{
from: 0,
to: 52,
color: '#0d2354',
name: 'States'
}
// {
// from: 12,
// to: 21,
// color: '#0d2354',
// name: 'Covered'
// }, {
// from: 22,
// to: 31,
// color: '#0d2354',
// name: 'Not Covered'
// }, {
// from: 32,
// color: '#0d2354',
// name: 'Covered'
// }
]
},
tooltip: {
headerFormat: '',
pointFormat: '<b>{point.name}</b>: <b>{point.description}</b>'
},
credits: {
enabled: false
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
format: '{point.hc-a2}',
color: '#ffffff',
style: {
textOutline: false
}
}
},
map: {
// events:{
// click: function(e){
// console.log(this.name);
// console.log(e);
// }
// },
// point: {
// events: {
// click: function(){
// console.log(this.name);
// $("#linkMap").trigger(this);
// }
// }
// }
}
},
series: [{
// events: {
// click: function(e){
// console.log('new one')
// console.log(this.name);
// console.log(e);
// }
// },
name: '',
data: [{
'hc-a2': 'AL',
name: 'Alabama',
region: 'South',
x: 6,
y: 6,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=2";
}
}
}, {
'hc-a2': 'AK',
name: 'Alaska',
region: 'West',
x: 0,
y: 0,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=3";
}
}
}, {
'hc-a2': 'AZ',
name: 'Arizona',
region: 'West',
x: 5,
y: 2,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=4";
}
}
}, {
'hc-a2': 'AR',
name: 'Arkansas',
region: 'South',
x: 5,
y: 5,
value: 20,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=5";
}
},
}, {
'hc-a2': 'CA',
name: 'California',
region: 'West',
x: 5,
y: 1,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=6";
}
}
}, {
'hc-a2': 'CO',
name: 'Colorado',
region: 'West',
x: 4,
y: 2,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=7";
}
}
}, {
'hc-a2': 'CT',
name: 'Connecticut',
region: 'Northeast',
x: 3,
y: 10,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=8";
}
}
}, {
'hc-a2': 'DE',
name: 'Delaware',
region: 'South',
x: 4,
y: 8,
value: 20,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=9";
}
},
}, {
'hc-a2': 'DC',
name: 'District of Columbia',
region: 'South',
x: 4,
y: 9,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=53";
}
}
}, {
'hc-a2': 'FL',
name: 'Florida',
region: 'South',
x: 8,
y: 7,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=10";
}
}
}, {
'hc-a2': 'GA',
name: 'Georgia',
region: 'South',
x: 7,
y: 7,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=11";
}
}
}, {
'hc-a2': 'HI',
name: 'Hawaii',
region: 'West',
x: 8,
y: 0,
value: 20,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=12";
}
},
}, {
'hc-a2': 'ID',
name: 'Idaho',
region: 'West',
x: 3,
y: 1,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=13";
}
}
}, {
'hc-a2': 'IL',
name: 'Illinois',
region: 'Midwest',
x: 3,
y: 5,
value: 20,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=14";
}
},
}, {
'hc-a2': 'IN',
name: 'Indiana',
region: 'Midwest',
x: 3,
y: 6,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=15";
}
}
}, {
'hc-a2': 'IA',
name: 'Iowa',
region: 'Midwest',
x: 3,
y: 4,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=16";
}
}
}, {
'hc-a2': 'KS',
name: 'Kansas',
region: 'Midwest',
x: 5,
y: 4,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=17";
}
}
}, {
'hc-a2': 'KY',
name: 'Kentucky',
region: 'South',
x: 4,
y: 5,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=18";
}
}
}, {
'hc-a2': 'LA',
name: 'Louisiana',
region: 'South',
x: 6,
y: 4,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=19";
}
}
}, {
'hc-a2': 'ME',
name: 'Maine',
region: 'Northeast',
x: 0,
y: 10,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=20";
}
}
}, {
'hc-a2': 'MD',
name: 'Maryland',
region: 'South',
x: 4,
y: 7,
value: 20,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=21";
}
},
}, {
'hc-a2': 'MA',
name: 'Massachusetts',
region: 'Northeast',
x: 2,
y: 9,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=22";
}
}
}, {
'hc-a2': 'MI',
name: 'Michigan',
region: 'Midwest',
x: 2,
y: 6,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=23";
}
}
}, {
'hc-a2': 'MN',
name: 'Minnesota',
region: 'Midwest',
x: 2,
y: 3,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=24";
}
}
}, {
'hc-a2': 'MS',
name: 'Mississippi',
region: 'South',
x: 6,
y: 5,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=25";
}
}
}, {
'hc-a2': 'MO',
name: 'Missouri',
region: 'Midwest',
x: 4,
y: 4,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=26";
}
}
}, {
'hc-a2': 'MT',
name: 'Montana',
region: 'West',
x: 2,
y: 1,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=27";
}
}
}, {
'hc-a2': 'NE',
name: 'Nebraska',
region: 'Midwest',
x: 4,
y: 3,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=28";
}
}
}, {
'hc-a2': 'NV',
name: 'Nevada',
region: 'West',
x: 4,
y: 1,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=29";
}
}
}, {
'hc-a2': 'NH',
name: 'New Hampshire',
region: 'Northeast',
x: 1,
y: 10,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=30";
}
}
}, {
'hc-a2': 'NJ',
name: 'New Jersey',
region: 'Northeast',
x: 3,
y: 9,
value: 20,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=31";
}
},
}, {
'hc-a2': 'NM',
name: 'New Mexico',
region: 'West',
x: 6,
y: 2,
value: 20,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=32";
}
},
}, {
'hc-a2': 'NY',
name: 'New York',
region: 'Northeast',
x: 2,
y: 8,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=33";
}
}
}, {
'hc-a2': 'NC',
name: 'North Carolina',
region: 'South',
x: 5,
y: 8,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=34";
}
}
}, {
'hc-a2': 'ND',
name: 'North Dakota',
region: 'Midwest',
x: 2,
y: 2,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=35";
}
}
}, {
'hc-a2': 'OH',
name: 'Ohio',
region: 'Midwest',
x: 3,
y: 7,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=36";
}
}
}, {
'hc-a2': 'OK',
name: 'Oklahoma',
region: 'South',
x: 6,
y: 3,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=37";
}
}
}, {
'hc-a2': 'OR',
name: 'Oregon',
region: 'West',
x: 4,
y: 0,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=38";
}
}
}, {
'hc-a2': 'PA',
name: 'Pennsylvania',
region: 'Northeast',
x: 3,
y: 8,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=39";
}
}
}, {
'hc-a2': 'RI',
name: 'Rhode Island',
region: 'Northeast',
x: 2,
y: 10,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=40";
}
}
}, {
'hc-a2': 'SC',
name: 'South Carolina',
region: 'South',
x: 6,
y: 7,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=41";
}
}
}, {
'hc-a2': 'SD',
name: 'South Dakota',
region: 'Midwest',
x: 3,
y: 3,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=42";
}
}
}, {
'hc-a2': 'TN',
name: 'Tennessee',
region: 'South',
x: 5,
y: 6,
value: 10,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=43";
}
}
}, {
'hc-a2': 'TX',
name: 'Texas',
region: 'South',
x: 7,
y: 3,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=44";
}
}
}, {
'hc-a2': 'UT',
name: 'Utah',
region: 'West',
x: 5,
y: 3,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=45";
}
}
}, {
'hc-a2': 'VT',
name: 'Vermont',
region: 'Northeast',
x: 1,
y: 9,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=46";
}
}
}, {
'hc-a2': 'VA',
name: 'Virginia',
region: 'South',
x: 5,
y: 7,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=47";
}
}
}, {
'hc-a2': 'WA',
name: 'Washington',
region: 'West',
x: 2,
y: 0,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=48";
}
}
}, {
'hc-a2': 'WV',
name: 'West Virginia',
region: 'South',
x: 4,
y: 6,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=49";
}
}
}, {
'hc-a2': 'WI',
name: 'Wisconsin',
region: 'Midwest',
x: 2,
y: 4,
value: 40,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=50";
}
}
}, {
'hc-a2': 'WY',
name: 'Wyoming',
region: 'West',
x: 3,
y: 2,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=51";
}
}
}, {
'hc-a2': 'PR',
name: 'Puerto Rico',
region: 'South',
x: 8,
y: 9,
value: 30,
description: "click to view",
events: {
click: function(e){
window.location.href = "https://www.lung.org/policy-advocacy/healthcare-lung-disease/asthma-policy/asthma-care-coverage/database/state?id=54";
}
}
},]
}]
});
View the database