Skip to content

Instantly share code, notes, and snippets.

@poiyzy
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poiyzy/f5079bab2e3e6beba444 to your computer and use it in GitHub Desktop.
Save poiyzy/f5079bab2e3e6beba444 to your computer and use it in GitHub Desktop.
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