Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

1116东南基础设施堆叠图

Public visualization

1116东南基础设施堆叠图

0 stars0🌍 Public
Vvivianaaai@qq.com
Last edited Nov 16, 2023
Created on Nov 16, 2023

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed