Skip to content

Instantly share code, notes, and snippets.

@poiyzy
Last active August 29, 2015 14:20
Embed
What would you like to do?
chart = new GrowingCharts(document.getElementById('waterfall-chart'))
chart.render({
type: "waterFall",
chartSize: {
marginLeft: 50,
marginRight: 50,
width: 600,
height: 500
},
data: [{
x: 'Product',
y: 120
}, {
x: 'Order',
y: 569
}, {
x: 'Service',
y: 231
}, {
x: 'Sum',
isIntermediateSum: true,
color: "black"
}, {
x: 'Ads',
y: -342
}, {
x: 'Variable Costs',
y: -233
}, {
x: 'Balance',
isSum: true,
color: 'black'
}]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment