Skip to main content
100%

Fork of Fork of Fork of Bar Chart + Axis customisation

✓ Published0🌍 Public
RRohit-2710
Last edited Feb 25, 2021
Created on Feb 25, 2021

This bar chart visualizes total COVID-19 cases across eleven countries, using a horizontal layout with a blue-pink gradient fill for bars. The visualization customizes both axes: the y-axis removes tick lines and domain, while the x-axis formats values using D3’s `format` function (e.g., converting to compact notation) and includes a labeled axis title. Data is loaded from a CSV file using `d3.csv`, with scales created via `scaleLinear` and `scaleBand`. Text elements also feature gradient fills, and margins are explicitly set to position the chart within an SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes