Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Line Chart - US Airline Traffic - Number of Flight

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Fork of Line Chart - US Airline Traffic - Number of Flight

0
Ssrividyamadas@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

This line chart displays the revenue of ten Indian states from 2020 to 2024, with each state represented by a distinct colored line and a legend. The data is loaded from a remote text file and parsed to extract only the selected states. Using D3.js v7, the code defines linear scales for the x-axis (years) and y-axis (revenue), then draws paths with the `d3.line` generator and applies the `d3.scaleOrdinal` color scheme. Axes are rendered with `d3.axisBottom` and `d3.axisLeft`, while SVG text elements provide the chart title and axis labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed