Skip to main content
Public

Share visualization

Loading preview…

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

ICE-6 : Rendering Marks and Channels with react and D3

0
HHarshinireddyy19
Last edited Jun 24, 2022
Created on Jun 23, 2022
Forked from HTML Starter

This example displays a bar chart of student scores from a CSV file, using React to manage state and D3 to render SVG marks. The horizontal bars encode each student's amount through length, with categorical names on the y-axis and a linear scale for values on the x-axis. The code uses `d3.csv`, `scaleBand`, and `scaleLinear`, along with `axisLeft` and `axisBottom` for ticks. React’s `useState` and `useEffect` load and transform the data, while `ReactDOM.render` mounts the visualization.

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