stm operationg budget
highcharts.js
by phsiao2000
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: 310px; max-width: 1200px; height: 600px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
exporting: {
sourceWidth: 1400
},
chart: {
type: 'waterfall'
},
title: {
text: 'Saint Mark’s Proposed Operating Budget 2015'
},
xAxis: {
type: 'category'
},
yAxis: {
title: {
text: 'USD'
}
},
legend: {
enabled: false
},
tooltip: {
pointFormat: '<b>${point.y:,.2f}</b> USD'
},
series: [{
upColor: Highcharts.getOptions().colors[2],
color: Highcharts.getOptions().colors[3],
data: [{
name: 'Pledge Income',
y: 750000
}, {
name: 'Other Income',
y: 504000
}, {
name: 'Designated Fund Release',
y: 57000
}, {
name: 'Other Revenues',
y: 62300
}, {
name: 'Positive Balance',
isIntermediateSum: true,
color: Highcharts.getOptions().colors[1]
}, {
name: 'Admin Expenses',
y: -253300
}, {
name: 'Building Expenses',
y: -376100
}, {
name: 'Diocese & Seminary',
y: -153900
}, {
name: 'Ministries',
y: -532000
}, {
name: 'Part Position Adds',
y: -55000
}, {
name: 'Parish Community',
y: -44600
}, {
name: 'Other Expenses',
y: -58100
}, {
name: 'Balance',
isSum: true,
color: Highcharts.getOptions().colors[1]
}],
dataLabels: {
enabled: true,
...