Highcharts Demo
author(s):
Torstein Hønsi
by Rajesh Danabal
HTML
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; max-width: 600px; height: 400px; margin: 0 auto"></div>
JavaScript
Highcharts.chart('container', {
chart: {
type: 'waterfall',
backgroundColor : "#f4f4f4"
},
title: {
text: ''
},
xAxis: {
visible: false
},
yAxis: {
visible: false
},
tooltip: {
enabled: false
},
credits: {
enabled: false
},
exporting: {
enabled: false
},
legend: {
enabled: false
},
series: [{
upColor: "#E1E2E3",
color: "#D0D2D3",
data: [{
name: 'Start',
y: 200000
}, {
name: 'Product Revenue',
y: 158000
}, {
name: 'Service Revenue',
y: 360000
}, {
name: 'Fixed Costs',
y: -160000
}, {
name: 'Variable Costs',
y: -180000
}, {
name: 'Balance',
isSum: true,
color: "#929497"
}],
dataLabels: {
enabled: false,
},
pointPadding: 0
}]
});