Highcharts Spider Web Fill Opacity
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 400px; max-width: 600px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
polar: true,
type: 'area'
// areaspline or area.
},
plotOptions: {
column: {
colorByPoint: true
}
},
colors: [
'#ff0000',
'#00ff00'],
title: {
text: 'Budget vs spending',
x: -80
},
pane: {
size: '80%'
},
xAxis: {
gridLineColor: "blue",
categories: ['Project', 'Terrestrial Footprint - Road', 'Terrestrial Footprint - Powerline', 'Aquatic Footprint', 'Cost'],
tickmarkPlacement: 'on',
lineWidth: 0
},
yAxis: {
gridLineColor: "black",
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',
data: [43000, 19000, 60000, 35000, 17000],
pointPlacement: 'on',
fillColor: 'rgba(255,0,255,1)',
color: "yellow",
fillOpacity: 0.2
}, {
name: 'Actual Spending',
data: [50000, 39000, 42000, 31000, 26000],
pointPlacement: 'on',
color: '#ff00ff',
fillOpacity: 0.2
}]
});
});