Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars0🌍 Public
Kkarnisrikanth2212
Last edited Mar 11, 2023
Created on Mar 11, 2023

This example visualizes the basic cost of Netflix subscriptions across fifteen countries using a horizontal bar chart. It combines React for component structure and state management with D3 v5 for data loading and scale construction, rendering SVG elements directly through JSX. The code employs `d3.csv` to fetch data, `scaleBand` and `scaleLinear` for positioning, and manually generates axis ticks and gridlines. Bar widths encode the numeric cost values, and the chart is styled with a fixed size and margins.

AI-generated description

A bare minimum HTML page.

Comments

Sign in to join the discussion.

MIT Licensed