Skip to main content
100%

散点图

✓ Published1🌍 Public
HHillKinsh
Last edited Dec 19, 2020
Created on Dec 19, 2020
Forked from 自定义坐标轴

This scatter plot visualizes the relationship between vehicle weight and cylinder count using data from the auto-mpg dataset. The visualization employs d3.scaleLinear for both axes, d3.axisLeft and d3.axisBottom for tick marks, and renders data points as SVG circles with a steelblue fill. The chart includes axis labels for population and weight, plus a title, with tick formatting using d3.format to abbreviate large numbers. The code loads CSV data via d3.csv and positions circles using the scaled x and y values, with grid lines extending across the plot area.

AI-generated description

A 散点图 of d3js. HTML page demonstrating use of CSS and JavaScript

MIT Licensed

Similar vizzes