Skip to main content
100%

Grafico de barras com eixos (axis)

✓ Published1🌍 Public
RRodrigo Zanco
Last edited Jun 10, 2021
Created on Jun 7, 2021

This example shows a horizontal bar chart of the top ten countries by estimated 2020 population, with labeled x- and y-axes rendered as SVG elements. The React app loads the UN population dataset via `d3.csv`, then uses `scaleBand` for country categories and `scaleLinear` for population values. Axes are manually drawn by mapping `xScale.ticks()` to grid lines and labels, while country names are positioned against the band scale. The bars themselves are simple `rect` elements whose width derives from the linear scale.

AI-generated description

Programa que renderiza dados usando React e processa o D3-arc. (radial burst).

MIT Licensed

Similar vizzes