Created
August 1, 2019 22:51
-
-
Save firminochangani/7330e9efb4e4823364ea7e3adfd5551c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* renderAxes: Based on the x and y scales it will | |
* render the axes in the svg. | |
*/ | |
renderAxes() { | |
const { x, y } = this.scales; | |
d3.select(".plot__axes__x").call(d3.axisBottom(x)); | |
d3.select(".plot__axes__y").call(d3.axisLeft(y)); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment