Skip to main content
Public

Share visualization

Loading preview…

Fork of Line 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 Line Chart

1
Nnishanththouta16@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

A simple line chart tracks six years of sales data, with a black polyline connecting points across evenly spaced, band-scaled year categories. The chart uses D3 v6 to build an SVG, applying `d3.scaleBand` and `d3.scaleLinear` to map coordinates and a `d3.line` generator to create the path. Axes are drawn with `d3.axisBottom` and `d3.axisLeft`, while text labels appear for both variables, all with the dataset embedded directly in `index.html`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed