Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line chart - Mahesh - ICE7

Public visualization

Viewing a saved revision (read-only)

fca88502c4b54cd0bc8da730e8b5bec5

Line chart - Mahesh - ICE7

0 stars0🌍 Public
Ppmbhupathibalu@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from Line Chart

This line chart visualizes revenue trends for five selected states—California, New York, Texas, Florida, and Illinois—from 2020 to 2023. It uses D3.js v7 to load comma-separated text data, parse it, and render an SVG with a multi-line chart. The code applies `d3.scaleLinear` for axes, `d3.line` with `d3.curveLinear` for path generation, and `d3.scaleOrdinal` with `schemeCategory10` for colors. Axes are drawn using `d3.axisBottom` and `d3.axisLeft`, with a legend and title included.

AI-generated description