Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Barchart!

Public visualization

Making a Barchart!

0 stars0🌍 Public
KKevin Bolger
Last edited Feb 23, 2020
Created on Feb 22, 2020

This example shows a horizontal bar chart displaying the `c1` values for three peril categories from a CSV file. The chart uses D3 v5 to load the data, create linear and band scales, and render SVG rectangles with axes. The code explicitly imports `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from D3, and it converts string values to numbers before rendering.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed