Skip to main content
100%

D3 Initial Hist Test

✓ Published0🌍 Public
Ccardoza-IPH
Last edited Sep 26, 2022
Created on Sep 26, 2022

This example displays an attempt at a bar chart using D3 v6, loading sensor data from a CSV file hosted on GitHub. The code imports `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from D3, then renders an SVG that fills the browser viewport. It maps timestamp and value fields to band and linear scales, drawing rectangles for each data point along with axes, though the data fields referenced do not align with the parsed columns. The visualization is built within a React project but uses plain DOM selection for rendering.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes