🌍 Public
Viewing a saved revision (read-only)
65b691b3d5e045dc8c712604b983f37e
1116东南基础设施堆叠图
This visualization presents a stacked bar chart of pedestrian, non-motorized vehicle, and motor vehicle counts for a single lane (laneid 0), using a naive dataset embedded in the code. The chart uses D3 v6 to stack the three categorical keys via `d3.stack`, scales them with `d3.scaleLinear` and `d3.scaleBand`, and colors each segment with `d3.schemeSet3`. An HTML legend is built with D3 selections, and axes are rendered with `d3.axisLeft` and `d3.axisBottom`. The SVG rendering includes margins and a main group for coordinate placement.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.