Skip to main content
100%

Refactored & Stylized Bar Chart

✓ Published0🌍 Public
DDean Bozic
Last edited Oct 20, 2020
Created on Oct 20, 2020

This bar chart displays the population of ten countries from the UN’s 2019 population dataset, with each bar’s length encoding population values. The visualization uses React components to render D3 scales and axes, including `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. Rendered as SVG, the chart applies a custom Poppins font, styled tick marks, and a tooltip via the SVG `<title>` element. The code filters the data to the top ten entries before mapping it to marks.

AI-generated description

Basic D3 bar chart (with React). It includes basic rendering, filtering data before visualization, and the margin convention.

MIT Licensed

Similar vizzes