Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Fork of ICE-6 Bar Graph

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 Fork of Fork of ICE-6 Bar Graph

0
Cchandanagandla
Last edited Mar 15, 2023
Created on Mar 15, 2023

This example shows the most streamed songs and their basic costs, with a horizontal bar chart rendered as SVG. It loads data from a CSV file using `d3.csv`, filters to the first 12 rows, and maps values with `scaleBand` for the y-axis and `scaleLinear` for the x-axis. The React component uses `useState` and `useEffect` to fetch and store data, while D3’s `axis` and formatting utilities are imported but not directly used; instead, ticks and grid lines are manually drawn. The chart is styled with red gridlines and no axis components.

AI-generated description

A whole smiley face

Comments

Sign in to join the discussion.

MIT Licensed