demo ยท v139

Canvas 2D Fallback

When getContext("webgl") returns null, the right move is not "throw an error and break the page". Render the same chart with Canvas 2D instead. This page draws the same scatter plot two ways and lets you simulate the WebGL-unavailable branch.

probing WebGL...

render path

โ€”

code path taken

see also