Skip to main content
100%

Scatter Plot with Menus

✓ Published0🌍 Public
Zzhangfa
Last edited Aug 6, 2020
Created on Aug 6, 2020
Forked from scatter plot

This scatter plot lets users explore the relationship between pairs of numeric car attributes, choosing axes from dropdown menus built with the `dropdownMenu` function. Rendered as an SVG, the visualization updates via a unidirectional data flow, passing selected options from the menus to the `scatterPlot` component, which uses `scaleLinear`, `axisBottom`, and `axisLeft`. The 1970s–80s auto-mpg dataset is loaded with `d3.csv`. Circles animate from the center to their positions using a `transition`, with a duration and delay per point.

AI-generated description

开发流程

创建下拉菜单组件

采用单向数据流

创建散点图组件

静态的常规更新模式重构

精美动画

MIT Licensed

Similar vizzes