Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of ICE-6: Rendering Marks and Channels with React & D3

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 ICE-6: Rendering Marks and Channels with React & D3

0
IIndhuKrishnaraj
Last edited Mar 8, 2023
Created on Mar 8, 2023
Forked from Hello VizHub

This example visualizes the top 15 countries by basic Netflix subscription cost using a horizontal bar chart rendered as SVG. It loads data from a CSV file via `d3.csv` and uses React hooks (`useState`, `useEffect`) to manage the asynchronous data fetching. The chart employs `d3.scaleBand` for the categorical y-axis (country names) and `d3.scaleLinear` for the quantitative x-axis, with custom tick rendering for gridlines and labels. All marks are drawn manually as `<rect>` elements within a React component, combining D3’s scaling and data utilities with React’s declarative DOM updates.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed