Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Srividya Bargraph

Public visualization

Viewing a saved revision (read-only)

ed8f4ef5d3784737a926c189cf518d1a

Srividya Bargraph

0 stars0🌍 Public
Ssrividyamadas@gmail.com
Last edited Mar 21, 2024
Created on Mar 20, 2024

This example visualizes the population of Indian states in 2011 as a bar chart. The chart uses a vertical bar for each state, with the height encoding the population value, and includes labeled axes for states and population. The code utilizes D3 v7’s `scaleBand`, `scaleLinear`, `axisBottom`, and `axisLeft` APIs to render the SVG, with bars colored steelblue and a hover effect. Population data is loaded from a CSV file via `d3.csv` with `d3.autoType`, and the chart is displayed alongside an analysis section.

AI-generated description