Nunwood VOC CEE Trend

by Danielle Parkinson

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>

JavaScript

Highcharts.chart('container', {
    chart: {
        type: 'line',
        backgroundColor: '#fff',
        style: {
            fontFamily: 'Metrophobic',
            color: '#2a3f54'
        },
        height: 400,
        width: 1200
    },
    credits: {
    	enabled: false
    },
    exporting: {
    		enabled: false
    },
    title: {
        text: ' '
    },
    subtitle: {
        text: ' '
    },
    xAxis: {

        labels: {
            style: {
                color: '#2a3f54',
                fontSize: '14px',
                fontFamily: 'Metrophobic'
            }
        },
        tickLength: 0
    },
    yAxis: {
    type: 'datetime', //y-axis will be in milliseconds
                dateTimeLabelFormats: {
              minTickInterval: 24 * 3600 * 1000,
              millisecond: '%b %e'
            },
    min: 0,
    title: {
            text: 'minutes: seconds: milliseconds'
        },
        gridLineColor: '#aec4db',
        labels: {
            style: {
                color: '#2a3f54',
                fontSize: '14px',
                fontFamily: 'Metrophobic'
            }
        }
    },
    tooltip: {
        pointFormat: '{series.name} produced <b>{point.y:,.0f}</b><br/>warheads in {point.x}'
    },
    plotOptions: {
        area: {
            marker: {
                enabled: false,
                symbol: 'circle',
                radius: 2,
                states: {
                    hover: {
                        enabled: true
                    }
                }
            }
        }
    },
    legend: {
            itemStyle: {
                color: '#2a3f54',
                fontSize: '14px',
                fontFamily: 'Metrophobic',
                fontWeight: 'normal'
            }
    },
    series: [{
        name: 'Average Query time',
        color: '#1abb9c',
                pointInterval: 24 * 3600 * 1000, 
		        data: [0.16 * 60 * 1000, 0.18 * 60 * 1000, 0.22 * 60 * 1000, 0.21 * 60 * 1000, 0.21 *...