Created
February 16, 2017 04:33
-
-
Save biovisualize/196de0696a9bdae9dca9ce69f2acf31a to your computer and use it in GitHub Desktop.
External API example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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