block by nbremer aae35b358c7450b70cc12b27e48c6196

Canvas tutorial - Turn SVG scatterplot into Canvas - Medium level

Full Screen

This scatterplot is made with d3.js and SVG - For the canvas tutorial it is now your job to turn this scatterplot into one uses canvas for the visual part (the drawing of the circles). You can still use d3’s helper functions for things such as scales, d3.select, etc.

For the medium level you need to keep the SVG in as well (and thus position both the SVG and canvas (absolutely) on top of each other) and use the SVG for all the textual parts: the axes and titles

See the other two levels here: Normal level and Extreme level

If you’re completely stuck (and please, for your own benefit, only then) you can look at the solution here

Built with blockbuilder.org

index.html