Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart Attempt

Public visualization

Viewing a saved revision (read-only)

5c7c705265314ab98ce9b16fd65b2c67

Bar Chart Attempt

0 stars0🌍 Public
AAnna Xu
Last edited Aug 3, 2022
Created on Aug 1, 2022
Forked from HTML Starter

This example attempts to render a bar chart from a CSV dataset containing position and count values. Using D3.js, it selects all existing `rect` elements, binds the data, and appends new rectangles as needed, setting each bar’s width to 1 pixel, height to the count value, and x-position to the position field. The bars are filled black and rendered inside an SVG that fills the entire browser window. No axes or labels are included, leaving the raw data points as a scattered, vertical line pattern.

AI-generated description

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

See also React Starter.