Skip to main content
100%

Customizing Axes

✓ Published3🌍 Public
JJake
Last edited Jun 14, 2020
Created on Jun 6, 2020
Forked from Making a barchart

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
MIT Licensed

Similar vizzes