Skip to content

Instantly share code, notes, and snippets.

@bumbeishvili
Created January 18, 2024 18:55
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 bumbeishvili/6bc1abe212fd6426819b0592862641c8 to your computer and use it in GitHub Desktop.
Save bumbeishvili/6bc1abe212fd6426819b0592862641c8 to your computer and use it in GitHub Desktop.
Usage
<div id="graph-container"></div>
<script>
let dataSample = [
{name:1,value:1},
{name:2,value:2},
]
let chart = new Chart()
.svgHeight(window.innerHeight - 30)
.svgWidth(window.innerWidth - 30)
.container("#graph-container")
.data(dataSample)
.render();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment