Highcharts Demo

author(s): Torstein Hønsi

by linus

HTML

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/3.0.4/highcharts.js"></script>
<script src="https://code.highcharts.com/3.0.4/highcharts-more.js"></script>

<div id="container" style="height: 400px"></div>

JavaScript

new Highcharts.Chart({
    chart: {
        polar: true,
        type: 'line',
        renderTo: 'container'
    },
    
    tooltip: {
        shared: true,
        pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>'
    },

    legend: {
        align: 'right',
        verticalAlign: 'top',
        y: 70,
        layout: 'vertical'
    },
    
    xAxis: {
        categories: ['Sales', 'Marketing', 'Development', 'Customer Support',
                'Information Technology', 'Administration'],
        tickmarkPlacement: 'on',
        lineWidth: 0
    },
    
    yAxis: {
        gridLineInterpolation: 'polygon',
        lineWidth: 0,
    },

    series: [{
        name: 'Allocated Budget',
        data: [43000, 19000, 60000, 35000, 17000, 10000],
        pointPlacement: 'on'
    }, {
        name: 'Actual Spending',
        data: [50000, 39000, 42000, 31000, 26000, 14000],
        pointPlacement: 'on'
    }]
});