Skip to main content
Public

Share visualization

Loading preview…

test

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

test

1
BBryanA999
Last edited Mar 13, 2023
Created on Mar 13, 2023
Forked from ICE 7 - line graph

This example shows weekly sales figures for Walmart over a 52-week period, with the line chart tracking sales trends against calendar weeks. The visualization uses D3 v5 to render an SVG, employing `d3.scaleLinear` for both axes, `d3.axisLeft` and `d3.axisBottom` for tick marks, and `d3.line` to generate the path. Data is loaded as CSV from a GitHub gist, with sales values converted to numbers. The chart includes labeled axes, a title, and a styled stroke, while gridlines are created from tick sizes extending across the plotting area.

AI-generated description

Creating a line Chart with d3.js.

Comments

Sign in to join the discussion.

MIT Licensed