Canvas tutorial - Turn SVG scatterplot into Canvas - Normal level
This scatterplot visualizes IMDb movie data, plotting each film's budget against its rating, with point size and opacity reflecting the profit ratio and color encoding the release year. The example is a tutorial that challenges the viewer to convert an existing SVG-based D3.js visualization into one rendered on an HTML5 canvas. The provided code uses D3 v4 helper functions like `d3.scaleLinear`, `d3.scaleLog`, `d3.scaleSqrt`, and `d3.scaleSequential` for data scaling, while the actual circle drawing is currently done with SVG elements, which the tutorial instructs replacing with canvas drawing commands.