Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-6 Rendering Marks and Channels with React & D3

Public visualization

ICE-6 Rendering Marks and Channels with React & D3

0 stars0🌍 Public
SShishiraRudrabhatla
Last edited Jun 25, 2022
Created on Jun 25, 2022

A horizontal bar chart displays revenue for ten cosmetic products, with purple bars and blue axes on an SVG canvas. React manages the state and rendering loop, while D3 v5 functions (`csv`, `scaleBand`, `scaleLinear`, `max`) load the CSV data and compute scales. D3's `csv` fetches the data from a GitHub Gist URL, and the chart maps product names to y-axis positions and revenue values to bar widths.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed