Spider chart Area & Line
by amrutaJgtp
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<div id="container" style="height: 400px"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
polar: true,
type: 'line',
marginLeft: 55
},
title: {
text: 'Title',
x: -80
},
pane: {
size: '80%'
},
xAxis: {
categories: ['Sales', 'Marketing', 'Development', 'Customer Support',
'Information Technology', 'Administration'
],
tickmarkPlacement: 'on',
lineWidth: 0
},
yAxis: {
gridLineInterpolation: 'polygon',
lineWidth: 0,
min: 0
},
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'
},
series: [{
name: 'Allocated Budget',
type: 'line',
data: [43000, 19000, 60000, 35000, 24000, 30000],
pointPlacement: 'on'
}, {
name: 'Actual Spending',
type: 'line',
data: [50000, 39000, 42000, 31000, 26000, 14000],
pointPlacement: 'on'
},{
name: 'Expenses',
type: 'area',
data: [27000, 27000, 27000, 18000, 27000, 3000],
pointPlacement: 'on'
},{
name: 'Savings',
type: 'area',
data: [9000, 27000, 9000, 18000, 27000, 6000],
pointPlacement: 'on'
}]
});
});