🌍 Public
Viewing a saved revision (read-only)
0bb630fa2f2d4498b8a81e9d33d05f49
Customizing Axes
This example shows a scatterplot of automobile horsepower against weight, with clearly labeled axes and a title. The axes are customized using D3’s `axisBottom` and `axisLeft` to include gridlines via negative tick sizes, while axis labels are added as SVG text elements with rotations. Data from a CSV file is loaded with `d3.csv`, and scales are created using `scaleLinear` with `.nice()` for clean tick intervals. The circles are rendered as SVG elements with adjustable opacity, and tick lines and labels are styled via CSS.
AI-generated description