Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lets Make a bar chart with D3 Format

Public visualization

Lets Make a bar chart with D3 Format

0 stars0🌍 Public
227-12-95
Last edited Mar 8, 2020
Created on Mar 8, 2020

This example displays a bar chart built with D3.js v5, using a small hardcoded dataset of seven numeric values. It renders both x and y axes via `d3.axisBottom()` and `d3.axisLeft()`, with linear scales (`d3.scaleLinear`) mapping the data range to SVG dimensions. The bars themselves are absent; instead, the visualization focuses on demonstrating axis generation and scaling, with the SVG container sized at 900 by 500 pixels and axes offset via `transform` attributes. The chart is authored in React, though the code relies on direct D3 DOM manipulation.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed