Skip to main content
100%

Grafico de barras com Margin Convention

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

This example shows a horizontal bar chart of the top ten countries by 2020 population, using a margin convention to position the visualization within an SVG. The React component fetches CSV data from a GitHub gist and renders bars with `scaleBand` for the y-axis and `scaleLinear` for the x-axis. It applies `d3.csv` for parsing, `max` for domain calculation, and a translated `<g>` group to offset the chart by the specified margins. The chart displays population values as bar widths, with a simple loading state before data arrives.

AI-generated description

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

MIT Licensed

Similar vizzes