Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Bar chart

Public visualization

Fork of Bar chart

0 stars0🌍 Public
Nnagalakshmibadineedi2@gmail.com
Last edited Mar 25, 2025
Created on Mar 25, 2025
Forked from Bar chart

This fork of a D3.js v7 bar chart displays car model names on the x-axis against their price in USD on the y-axis using steel-blue rectangles. The code loads data from a hardcoded array of eight vehicles, using `d3.scaleBand` for the categorical axis and `d3.scaleLinear` with `.nice()` for the continuous price scale. Axis labels are added via SVG `text` elements, and the chart renders entirely as an SVG inside an HTML page with no external data source.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed