Staffing vs Production

author(s): Torstein Hønsi

by jeffgw

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: 'spline'
    },
    title: {
        text: 'SUDCC Staffing vs. Production'
    },
    subtitle: {
        text: '1017-AHC Vilseck'
    },
    xAxis: {
        categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
    },
    yAxis: {
        title: {
            text: '% Target'
        },
        min:0,
        labels: {
    			formatter: function() {
       		return this.value*100+"%";
    		}
  },
        plotLines: [{ // mark the w	eekend
            color: '#CCC',
            width: 10,
            value: 1
        }]
    },
    plotOptions: {
        line: {
            dataLabels: {
                enabled: false
            },
            enableMouseTracking: false
        }
    },
    series: [{
        name: 'Total Staffing Level',
        data: [1,1,.8,.7,.7,.6,.9,1,1,1,.6,.8],
        color:'black'
    }, {
        name: 'Total Production Level',
        data: [1,1,1,.9,.8,.9,.9,1.1,1.2,1.2,1.1,1.2],
        color:'blue'
    }, {
        name: 'Relative Production Level',
        data: [1.2,1.2,1.1,1,1,1,1,1.1,1.2,1.5,1.4,1.2],
        color:'#c68b3d'
    }]
});