Scatter Chart 3D
Points in a box, colored by series.
Installation
npx shadcn@latest add niekes/chart3dcn/scatter-chart-3d#v1.2.0Update
Press Update: the points glide to their new positions over the animationDuration
of the container, and the axes scale along.
Enter and leave
With an id field, a point follows its name through updates: a new one grows
out of nothing at its place as it fades in, a gone one shrinks and fades away
where it stands - the mirror of its entering - and one that moves glides (see
Enter in the
glossary).
Without an id, points are named by their position in data, which animates
appending and removing at the end. An entry whose x, y or z is missing
or not a number has no point, as if it were not in data.
Renderers
The same chart on every renderer, side by side. The marks are data the chart hands to the container, and "svg" and "canvas" draw them all - where the browser has no canvas, as SVG.
Many marks
Five thousand points - and the chart stays interactive. The scene is one list
of marks, so the demo starts on "canvas", the renderer for many marks, and
the select shows the same scene on SVG.
API Reference
Prop
Type