Skip to main content
Public

Share visualization

Loading preview…

Fork of Bar chart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Bar chart

0
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