Created
March 5, 2021 18:41
-
-
Save lvngd/812bfe687e16dcce0188da753ae4ae22 to your computer and use it in GitHub Desktop.
kjhkjhkjh
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
let svg = d3.select('#chart') | |
.append('div') | |
.classed('svg-container', true) | |
.append('svg') | |
.attr("preserveAspectRatio", "xMinYMin meet") | |
.attr("viewBox", `0 0 ${width} ${height}`) | |
.classed('svg-content-responsive', true) | |
.append('g') | |
.attr('transform', `translate(${margin.left}, ${margin.top})`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment