Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Graph

Public visualization

Bar Graph

0 stars0🌍 Public
SSriyaI
Last edited May 19, 2023
Created on May 19, 2023
Forked from D3 Starter

This bar graph displays five categorical values (ranging from 10 to 30) as steelblue rectangles. Built with D3 v7, the visualization uses `d3.scaleBand` to position categories along the x-axis and `d3.scaleLinear` for the y-axis, with coordinates mapped to 400-by-300-pixel SVG dimensions. The code renders axes using `d3.axisBottom` and `d3.axisLeft`, drawing the chart into an HTML container.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed