Skip to main content
100%

Fork of Customizing Axis

✓ Published0🌍 Public
PPaolaAntonicoli
Last edited Feb 8, 2022
Created on Feb 8, 2022
Forked from Untitled

This example shows a bar chart of monthly incidents, using a diverging scale where bars extend horizontally from a central axis. The chart is rendered as an SVG in a React environment with D3 v5, using `scaleLinear` for the x-axis and `scaleBand` for the y-axis. The x-axis labels are formatted with `format('.2s')` to display numbers in thousands. The code customizes the axis by removing domain lines and tick marks, and adds a rotated title and axis label via `g.append`. Data comes from a CSV file loaded with `d3.csv`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes