Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart Practice

Public visualization

Viewing a saved revision (read-only)

0ea469d65f9a40a0bea9c7ff937b31cb

Bar Chart Practice

0 stars0🌍 Public
Ookahne@gmail.com
Last edited Apr 30, 2024
Created on Apr 29, 2024
Forked from Making a Bar Chart

This bar chart displays the average energy price in euros per megawatt-hour for four seasons in Spain from 2015 to 2018, sourced from a Kaggle dataset. It shows a fall peak above 64, with spring lowest near 51. The visualization uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map prices to horizontal bar lengths and seasons to vertical bands. SVG rectangles render the bars with steelblue fills, with margins and axes configured in a single group element.

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.