Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

linechart

Public visualization

Viewing a saved revision (read-only)

def8a1bb0c8c4abb933e59d8ce2789ff

linechart

0 stars0🌍 Public
MmNamratha25
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Activity8 Task3

This line chart visualizes the cost of sales from 2000 to 2013 using data loaded from a CSV file. The chart renders as an SVG with a light green stroke, employing d3.scaleBand for the x-axis and d3.scaleLinear for the y-axis, with axis labels added via d3.axisBottom and d3.axisLeft. The line is drawn using d3.line, mapping each year to its corresponding cost value, with red axis labels and a centered title.

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.