Skip to main content
100%

Fork of Fork of Bar Chart + Axis customisation

✓ Published6🌍 Public
RRohit-2710
Last edited Feb 26, 2021
Created on Feb 22, 2021

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
MIT Licensed

Similar vizzes