Skip to main content
Public

Share visualization

Loading preview…

Activity 8_Task 3

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

Activity 8_Task 3

0
KKeerthiAnnem
Last edited Jul 9, 2023
Created on Jul 9, 2023
Forked from Hello VizHub

This example visualizes the annual cost of sales from 2000 to 2013 using a line chart rendered as an SVG. The chart loads data from a CSV file and uses D3 v7’s `d3.scaleBand` for the year axis and `d3.scaleLinear` for the cost axis, with the line drawn via `d3.line`. It includes labeled axes and a red title. The code demonstrates importing D3 from UNPKG and local ES6 modules, with styling applied through embedded CSS.

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