Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
SsowmyaSG
Last edited Jun 11, 2019
Created on Jun 11, 2019
Forked from Making a Bar Chart

This bar chart displays the decibel levels recorded for six consecutive days, from day 6 through day 10, using purple bars on an SVG canvas. The data, loaded from a local CSV file, is plotted with D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the y-axis. Axes are generated using `axisLeft` and `axisBottom`, while the bar widths are set via `scaleLinear` based on the maximum decibel value. The chart uses a top margin of 20 pixels and a left margin of 100 pixels.

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.

MIT Licensed

Similar vizzes