🌍 Public
Viewing a saved revision (read-only)
b7784eb5a8044db7aba9987a84421466
Customizing Axes
This example demonstrates how to customize chart axes in D3.js, using a scatter plot of automobile data (horsepower vs. weight) from a CSV file. It shows how to remove the default axis frame lines, add tick marks that span the entire plot area, and append clear axis labels and a title. The code uses D3 v5 APIs including `select`, `csv`, `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `format`. The rendering is done using SVG within a React project, with all styling applied via external CSS classes.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.