An SVG Waterfall chart with an offset X axis
This goes in the documents header:
<script src="RGraph.svg.common.core.js"></script>
<script src="RGraph.svg.waterfall.js"></script>
Put this where you want the chart to show up:
<div style="width: 1000px; height: 300px" id="chart-container"></div>
This is the code that generates the chart:
<script>
new RGraph.SVG.Waterfall({
id: 'chart-container',
data: [4,8,6,-5,-4,5,-18,7,-5],
options: {
strokestyle: 'transparent',
strokestyleConnector: '#ccc',
yaxisMin: -5,
backgroundGridVlines: false,
backgroundGridBorder: false,
yaxis: false
}
}).draw();
</script>
« Back