Created
April 3, 2019 04:08
-
-
Save pinguxx/cc0d892874785cc2e721695e91c5aa06 to your computer and use it in GitHub Desktop.
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
const els = document.querySelectorAll('custom-chart'); | |
els[0].details = { | |
data: { | |
labels: [1, 2, 3, 4], | |
series: [[100, 120, 180, 200]] | |
}, | |
options: { | |
width: 300, | |
height: 200 | |
} | |
}; | |
els[1].data = { | |
labels: [1, 2, 3, 4], | |
series: [[100, 120, 180, 200]] | |
}; | |
els[1].options = { | |
width: 500 | |
} | |
els[0].type = "Bar" | |
els[1].type = "Line" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment