🌍 Public
Viewing a saved revision (read-only)
dd621ade2e9044c7ac984eac3f8f73f9
Untitled
This example demonstrates a stacked bar chart with diverging offsets, visualizing categorical data across ordinal x-values. The chart uses D3.js v7 to create an SVG rendering, with a Tableau10 color scheme distinguishing categories. The implementation employs D3's `stack` API with `stackOffsetDiverging` and `stackOrderNone`, mapping data through `d3.map` and `d3.rollup` to structure series. The interface includes a y-axis with gridlines and a monospace font, while interaction shows tooltips displaying x-value, category, and formatted y-value.
AI-generated descriptionA demonstration of visualization techniques on simple datasets using D3.