block by nbremer 7eda7f35215d6a5eb2a485f645844676

Canvas tutorial - Turn SVG scatterplot into Canvas - Extreme 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

For the extreme level, there are 3 steps (getting more difficult with each new step):

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

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

Built with blockbuilder.org

index.html