Skip to main content
Public

Share visualization

Loading preview…

Fork of Bar_Plot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Bar_Plot

0 stars1Public
Llathabemanadham@my.unt.edu
Last edited Mar 24, 2025
Created on Mar 24, 2025
Forked from Bar_Plot

This visualization is a horizontal bar chart showing the number of patients received by the top 10 hospitals in 2024. The bars, rendered as steelblue rectangles, display the patient count for each hospital, with hospital names listed along the y-axis and a scaled x-axis showing patient numbers with tick marks. The code uses React for component structure and state management, with d3.csv to load data from a remote CSV file, d3.scaleBand for the y-axis categories, and d3.scaleLinear for the x-axis values, alongside d3.axisBottom and d3.axisLeft helpers. The visualization is built as a single SVG within a React app, with margins and dimensions hardcoded.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed