Skip to content

Instantly share code, notes, and snippets.

@flowck
Created August 1, 2019 22:51
Show Gist options
  • Save flowck/7330e9efb4e4823364ea7e3adfd5551c to your computer and use it in GitHub Desktop.
Save flowck/7330e9efb4e4823364ea7e3adfd5551c to your computer and use it in GitHub Desktop.
/**
* 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