Skip to main content
Public

Share visualization

Loading preview…

linechart

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

linechart

1
UUmarani Vemula
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

A line chart shows the cost of sales from 2000 to 2013, with the year on the x-axis and cost on the y-axis. The data is loaded from a CSV file using `d3.csv` and rendered as an SVG path with a light green stroke. The chart uses `d3.scaleBand` for the categorical year axis and `d3.scaleLinear` for the continuous cost axis, with axes generated by `d3.axisBottom` and `d3.axisLeft`. Red axis labels and a centered title are added via SVG text elements.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.

Comments

Sign in to join the discussion.

MIT Licensed