Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Online Sales Line chart

Public visualization

Viewing a saved revision (read-only)

8e835b29dc5948329ef41c134c9421b4

Online Sales Line chart

0 stars1🌍 Public
MManideeprenikindi
Last edited Jul 24, 2023
Created on Jul 24, 2023

This example shows online sales revenue over time as a line chart, with the x-axis representing years and the y-axis representing total revenue. It uses D3 v5 to load CSV data, parse dates with `d3.timeParse`, and render the visualization in SVG. The code employs `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` generators to construct the chart, with gridlines styled via tick marks and a styled purple stroke for the data path.

AI-generated description

A demonstration of how to start using D3 version 6.