Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
NNikith Reddy
Last edited Mar 5, 2023
Created on Mar 5, 2023
Forked from Making a Bar Chart

This example shows the scores of individual students as horizontal bars, using a linear x-scale for the score values and a banded y-scale for the student names. The chart is rendered as an SVG with D3 v5, using `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to build the axes, while `format` customizes the tick labels. The data is loaded from a local `score.csv` file, and the bars are drawn as `rect` elements with a fixed steelblue fill.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes