Skip to main content
Public

Share visualization

Loading preview…

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

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

This example shows the basic cost of Netflix subscriptions in 15 countries using a horizontal bar chart, with countries scaled by cost along the x-axis. The visualization is rendered as an SVG using React for component structure and D3 v5 for data loading and scales, specifically `d3.csv`, `d3.scaleBand`, and `d3.scaleLinear`. Gridlines and axis ticks are drawn manually from scale domains, while rectangles represent each country’s cost. Data comes from a remote CSV file, loaded asynchronously and sliced to the first 15 entries.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed