This is a simple example using Scalable Vector Graphics.

JavaScript code is used to toggle, on or off, the visibility of elements that have been assigned identifiers.
Check the boxes below to change the visibility of the plot elements.

Toggle visibility of SVG Plot Elements

Borders
Grid Lines
Subsurface Shading
Failure Surface