Skip to main content
Public

Share visualization

Loading preview…

Fork of Line Chart by Tejaswi_Tummala

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 Line Chart by Tejaswi_Tummala

0
Tttummala17
Last edited Jul 1, 2022
Created on Jul 1, 2022

This example visualizes Tesla sales in the USA from January 2021 to February 2022 using a line chart. The chart maps months on the x-axis and sales figures on the y-axis, applying a time scale and linear scale respectively. The line is drawn with d3.line() and a curveBasis interpolation. React manages component state and data fetching, while D3 v7 handles CSV parsing, scaling, and axis rendering. The background image and custom CSS styling enhance the presentation of the SVG-based visualization.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed