Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-6(Sai Nitish): Rendering Marks and Channels with React & D3

Public visualization

ICE-6(Sai Nitish): Rendering Marks and Channels with React & D3

0 stars0🌍 Public
Ssainitish1999
Last edited Mar 7, 2022
Created on Feb 28, 2022

This visualization presents the top 10 cosmetic products ranked by revenue, using a horizontal bar chart rendered as SVG. The code imports D3 v7 and React, with data loaded from a CSV via `d3.csv` and scaled using `scaleLinear` and `scaleBand`. Axes are generated with `axisLeft` and `axisBottom`, while the chart title and axis label are added as SVG text elements. Although React is loaded in the HTML, the rendering is done imperatively with D3’s selection API.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed