Skip to content

Instantly share code, notes, and snippets.

@biovisualize
Created February 16, 2017 04:33
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 biovisualize/196de0696a9bdae9dca9ce69f2acf31a to your computer and use it in GitHub Desktop.
Save biovisualize/196de0696a9bdae9dca9ce69f2acf31a to your computer and use it in GitHub Desktop.
External API example
// separate init from setting config and data
var chart = datahub.chart.multi({
parent: container
})
chart.setConfig({
width: container.clientWidth,
autoScaleY: true
})
chart.setData(data)
// or pass all options on initialization
datahub.chart.multi({
parent: container,
width: container.clientWidth,
data: data,
autoScaleY: true
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment