Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Teste de Bar char

Public visualization

Teste de Bar char

0 stars1🌍 Public
JJefferson Abreu
Last edited Jul 12, 2019
Created on Jul 10, 2019
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed