Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line chart - Mahesh - ICE7

Public visualization

Viewing a saved revision (read-only)

f379383db7844a1cb58e9de4c44bc0f6

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