Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3 learning

Public visualization

d3 learning

0 stars0🌍 Public
GGagan Gurung
Last edited Mar 19, 2023
Created on Mar 19, 2023
Forked from HTML Starter

This example shows a simple bar chart where 100 vertical bars fill the width of an SVG canvas, each bar representing an index from 0 to 99. The chart is rendered using React with the D3 library, specifically using `d3.select`, `d3.range`, and the `join` method to bind data and create the rectangles. The SVG elements are appended directly to the document body, with bars positioned horizontally at intervals of 20 pixels and a fixed height of 500 pixels.

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