JavaScript
$(function() {
$('#container').highcharts({
chart: {
type: 'waterfall'
},
plotOptions: {
series: {
stacking: 'normal'
}
},
xAxis: {
categories: ['Base engine', 'Condition', 'Yearly C/R', 'Regulation', 'Base engine+Mandatory', 'FNFR Estimation', 'Estimated cost', 'FNFR Proposal', 'Grand Total']
},
yAxis: {
},
series: [{
name: "CPE Contingency",
data: [0, 0, 0, 0, {
isIntermediateSum: true
}, 350, {
isIntermediateSum: true
}, 112, {
isSum: true,
color: 'magenta'
}],
color: 'orange'
}, {
name: "VT",
data: [112, 0, 0, 0, {
isIntermediateSum: true,
color: 'red'
}, 0, {
isIntermediateSum: true
}, 0, {
isSum: true,
color: 'blue'
}],
color: 'violet'
}, {
name: "PM",
data: [212, 0, 0, 234, {
isIntermediateSum: true
}, 0, {
isIntermediateSum: true
}, 0, {
isSum: true,
color: 'pink'
}],
color: 'yellow'
}, {
name: "I/H",
data: [250, 115, -250, 0, {
isIntermediateSum: true
}, 0, {
isIntermediateSum: true
}, 0, {
isSum: true,
color: 'cyan'
}],
color: 'green'
}, {
name: "BOP",
data: [555, 0, 0, 0, {
isIntermediateSum: true
}, 0, {
isIntermediateSum: true
}, 0, {
isSum: true,
color: 'red'
}],
lineWidth: 0
}]
});
});