FiscalNote 15-4-13 - Regulation bars

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>Comments on EPA's Clean Power Act saw multiple peaks</h1>
    <h2>From June 2014 through Feb. 2015, a total of 33,559 comments were made publicly available through regulations.gov. Of those comments, three days saw over 1000 submissions, while others saw fewer than ten  or none at all.</h2>
    <div id="container" style="height: 200px;"></div>
    <!--<h3>Note: 2015 number includes reported cases through Feb. 9</h3>-->
    <div id="credit">Source: FiscalNote
        <img src="http://localhost:3000/assets/logos/logofull_153.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: 550px; }
#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: ['#9C91A5', '#B5ADBC'],
        title: { text: '' },
        subtitle: { enabled: false },
        yAxis: {
            min: 0,
            max: 1200,
            endOnTick: false,
            title: {
                text: 'Daily # of Comments',
                align: 'high'
            },
            labels: {
                overflow: 'justify'
            }
        },
        plotOptions: {
            column: {
                pointWidth: 2
            },
            series: {
                pointPadding: 0,
                groupPadding: 0.1
            }
        },
        tooltip: { enabled: false },
        legend: { enabled: false },
        credits: { enabled: false },
        xAxis: {
            type: 'datetime',
            title: { text: null }
        },
        series: [{
            name: '',
            data:...