Skip to content

Instantly share code, notes, and snippets.

@pinguxx
Created April 3, 2019 04:08
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 pinguxx/cc0d892874785cc2e721695e91c5aa06 to your computer and use it in GitHub Desktop.
Save pinguxx/cc0d892874785cc2e721695e91c5aa06 to your computer and use it in GitHub Desktop.
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