FiscalNote Bar 15-3-03 - Drones
by Adam Nekola
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="//use.typekit.net/zht7wtz.js"></script>
<script>try{Typekit.load();}catch(e){}</script>
<div id="graphic">
<h1>Many drone bills introduced by states, few enacted</h1>
<h2>Since 2013, approximately 450 bills have been introduced related to drone usage. As of March 3, 2015, only 18 have been enacted.</h2>
<div id="container" style="height: 300px;"></div>
<h3>Note: 2015 number includes bills introduced through March 3</h3>
<div id="credit">Source: FiscalNote Prophecy
<img src="https://fiscalnote.com/assets/logos/logosmall_153-77918c53b25bc34c07e07f712e719d18.png"/>
</div>
</div>
CSS
* {
font-family: "proxima-nova",sans-serif;
}
h1 {
color: #333333;
line-height:125%;
font-size: 1.2em;
font-weight: bold;
}
h2 {
color: #aaa;
font-size: 0.9em;
line-height:135%;
font-weight: 100;
}
h3 {
color: #aaa;
font-size: 0.7em;
line-height:135%;
font-weight: 100;
margin: 0 10px 10px;
}
#graphic { width: 300px; }
#graphic .wide { width: 600px; }
#credit {
padding: 10px;
background:#f4f4f4;
font-size:0.7em;
line-height:20px;
color:#aaa;
}
#credit img {
height: 20px;
width:auto;
float:right;
}
JavaScript
$(function () {
$('#container').highcharts({
chart: { type: 'column' },
colors: ['#B5ADBC', '#50435A'],
title: { text: '' },
subtitle: { enabled: false },
yAxis: {
min: 0,
max: 220,
endOnTick: false,
title: {
text: 'Total # of bills',
align: 'high'
},
labels: {
overflow: 'justify'
}
},
plotOptions: {
bar: {
dataLabels: {
enabled: true
}
},
series: {
pointPadding: 0,
groupPadding: 0.1,
stacking: true,
borderWidth: 0
}
},
tooltip: { enabled: false },
legend: { enabled: true },
credits: { enabled: false },
xAxis: {
categories: ['2013','2014','2015'],
title: { text: null }
},
series: [{
name: 'Total',
data: [162,211,{ y: 61, color: '#9C91A5'}]
},{
name: 'Enacted',
data: [9,9,0]
}]
});
});