Skip to main content
Public

Share visualization

Loading preview…

ICE6-barchart

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

ICE6-barchart

0
HHariniPotla@my.unt.edu
Last edited Mar 6, 2026
Created on Mar 6, 2026
Forked from HTML Starter

This example shows daily sales performance as a static bar chart, with each bar representing one day’s sales value in steel blue on an SVG canvas. It loads CSV data from a GitHub gist, parsing numeric fields for Day, Sales, Profit, Orders, and Visitors. The chart uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, with axes rendered via `d3.axisBottom` and `d3.axisLeft`. Only every fifth day is labeled on the x-axis to reduce clutter, and titles for the chart and axes are added as SVG text elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed