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 24, 2022
Forked from HTML Starter

This example renders a bar chart of student marks using React and D3 v5. It uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with React’s `useState` for data management. The visualization maps each student’s total marks to bar height, using color as an additional channel to distinguish data categories. The code creates SVG elements dynamically through React’s rendering system while leveraging D3’s scale functions for layout and positioning.

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