Skip to main content
100%

Customizing Axis

✓ Published0🌍 Public
KKanishka33
Last edited Jun 5, 2020
Created on Jun 5, 2020
Forked from Customizing Axis

This example demonstrates a bar chart that visualizes the relationship between sex and a numeric measurement from a CSV dataset, highlighting the customization of axis scales and formatting. The chart uses D3’s `scaleBand` for the categorical y-axis and `axisLeft` to render it, while the x-axis is created with `axisBottom` and a custom tick format that converts large numbers using `format(".3s")`. The code sets specific margins, removes default domain lines, and applies CSS styles for tick labels and grid lines, all within an SVG rendered via React.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes