Fork of Customizing Axis
✓ Published0🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed