Plot seriestype volume

Is there an example for how to use the seriestype=:volume recipe?
Found the recipe listed in the documentation here, but I am clearly using it incorrectly: Overview · Plots

I am attempting to render a 3d rectangular box by plotting the eight vertices using the code below, but this generates errors.

using Plots

x = [0,0,0,0,1,1,1,1]
y = [0,0,1,1,0,0,1,1]
z = [0,1,0,1,0,1,0,1]

plot(x, y, z, seriestype=:volume)

Using plot(x,y,z) without the volume recipe correctly plots lines connecting each vertex.

I would also like to learn how to use the seriestype=:surface recipe.

using Plots
plot(randn(100,100,100))

should work.

Was hoping for something closer to:

using Plots
x1 = [0,1,1,0]
y1 = [0,0,1,1]
plot(x1, y1, seriestype=:shape)

instead of:

using Plots
plot(rand(100,100))

But for 3d rather than 2d.

Is usage of :surface and :volume seriestype documented in more detail somewhere?

Found PlotlyJS to be the best solution for plotting volumes as a mesh.

Here’s an example of how to plot a tetrahedron in Julia.

using PlotlyJS
PlotlyJS.plot(
    PlotlyJS.mesh3d(
        x = [0, 1, 2, 0],
        y = [0, 0, 1, 2],
        z = [0, 2, 0, 1],
        i = [0, 0, 0, 1],
        j = [1, 2, 3, 2],
        k = [2, 3, 1, 3],
    )
)

It doesn’t work