Teste de Bar char
✓ Published1🌍 Public
This example displays a horizontal bar chart comparing the populations of ten countries, using a bar for each nation. The chart renders as an SVG using D3 v5, with a linear scale for the population axis and a band scale for the categorical country labels. The code employs D3's `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs to construct the visualization. Data is loaded from a CSV file, with population values multiplied by 1000, and the resulting bars are drawn as SVG rectangles.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed