Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart 1218

Public visualization

Bar Chart 1218

0 stars0🌍 Public
DDavid-Wong110723
Last edited Dec 20, 2021
Created on Dec 18, 2021
Forked from HTML Starter

This bar chart example uses the D3 v6 library within a React framework to visualize the relationship between vehicle weight and horsepower from the auto-mpg dataset. The SVG rendering employs `scaleLinear` for both axes and `extent` to set the domains. Grid lines and axis labels are created using `axisLeft` and `axisBottom`, while the data points are drawn as semi-transparent red circles. The chart is generated by loading the CSV data and parsing the numeric fields before rendering.

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