Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ppaul4952233@gmail.com
Last edited Sep 18, 2023
Created on Sep 14, 2023
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes