Area Chart 3D
Areas pushed back into ribbons, one per series.
Every series is the area under its line, from the floor of the box, pushed back into a ribbon: the entries run along x, one ribbon per series along z. Pointing at a face highlights that face alone; a face of the top tells the values at its two ends.
The area is the measure, so the chart is for values of 0 and up. A value below 0 drops the floor of the box to it, and every area then reads from there, not from 0; a bar chart grows from 0 either way.
A ribbon runs from one entry to the next, so it needs at least two: a single entry draws the box and no ribbon.
Installation
npx shadcn@latest add niekes/chart3dcn/area-chart-3d#v1.2.0Update
Press Update: the ribbons morph into new prices over the animationDuration
of their container, and the y axis scales along. The chart glides the prices,
not the faces, so every frame is projected, culled and ordered anew.
Enter and leave
New data may also bring, drop and reorder whole entries - a point follows the
name of its entry, in the index field. An added year unfolds from the year
before it, so the ribbons grow out of their ends while the x axis makes room,
its line growing to the new tick, its label fading in; a removed one folds
back into the year before it, the mirror of its entering, while the axis
closes the gap (see Enter in the
glossary).
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
Twelve sensors over two hundred days - about 2,400 faces on the tops of their
ribbons - 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