Skip to main content
100%

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

✓ Published1🌍 Public
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.

MIT Licensed

Similar vizzes