Skip to main content
100%

Activity 8_Task 3

✓ Published0🌍 Public
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.
MIT Licensed

Similar vizzes