Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Customizing Axis

Public visualization

Viewing a saved revision (read-only)

a2961c8d2c824250bb46266859cd2015

Fork of Customizing Axis

0 stars0🌍 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.