🌍 Public
Viewing a saved revision (read-only)
c3b13fbe6b4f4c2a90ca5c23e34539e0
Fork of Fork of Bar Chart + Axis customisation
This example shows the total COVID-19 cases for ten countries in a horizontal bar chart, with a custom gradient fill for the bars and gradient text for the axis tick labels. It loads data from an external CSV file using `d3.csv`, then renders SVG rectangles scaled with `scaleLinear` for the x-axis and `scaleBand` for the y-axis. The chart includes a titled x-axis with formatted tick labels via `format('.2s')`, and uses `axisBottom` and `axisLeft` for axes.
AI-generated description