Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Responsive Bar Chart

Public visualization

Fork of Responsive Bar Chart

0 stars0๐ŸŒ Public
Ssridhardubala106@gmail.com
Last edited Mar 20, 2024
Created on Mar 20, 2024

This example displays a horizontal bar chart showing visitors per year for different states, with each bar labeled by its numeric value. It uses D3 v5 to fetch CSV data from a remote gist and render the visualization as an SVG. The code employs `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, appending rectangles for bars and text elements for labels. The chart highlights the relative visitor counts across states, with the data source directly loaded via `d3.csv`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed