Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
chart = new GrowingCharts(document.getElementById('bar-chart'))
chart.render({
type: "barChart",
chartSize: {
marginLeft: 50,
marginRight: 50,
width: 600,
height: 500
},
data: [{x: "2015-01-01", y: 1}, {x: "2015-01-02", y: 1.3}, {x: "2015-01-03", y: 2.5}, {x: "2015-01-04", y: 2.9}, {x: "2015-01-05", y: 3.2}, {x: "2015-01-06", y: 3.8}, {x: "2015-01-07", y: 4}, {x: "2015-01-08", y: 4.9}, {x: "2015-01-09", y: 5.5}, {x: "2015-01-10", y: 5.8}, {x: "2015-01-11", y: 6.2}, {x: "2015-01-12", y: 6.8}, {x: "2015-01-13", y: 7.2}, {x: "2015-01-14", y: 8}, {x: "2015-01-15", y: 8.9}, {x: "2015-01-16", y: 9.2}, {x: "2015-01-17", y: 8.7}, {x: "2015-01-18", y: 8.1}, {x: "2015-01-19", y: 7.2}, {x: "2015-01-20", y: 6.6}, {x: "2015-01-21", y: 5.9}, {x: "2015-01-22", y: 5.2}, {x: "2015-01-23", y: 4.6}, {x: "2015-01-24", y: 3.5}, {x: "2015-01-25", y: 2.9}, {x: "2015-01-26", y: 2.1}, {x: "2015-01-27", y: 1.3}, {x: "2015-01-28", y: 1.8}, {x: "2015-01-29", y: 1.6}, {x: "2015-01-30", y: 1.1}, {x: "2015-01-31", y: 1.8}],
xAxis: {
type: 'datetime'
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment