Skip to main content
Public

Share visualization

Loading preview…

Fork of Selecting a Year on a line chart

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 Selecting a Year on a line chart

0
NNeepaB
Last edited Feb 16, 2021
Created on Feb 16, 2021

This example shows a fork of a line chart that selects a year to display. It reads movie data from a CSV file, parsing the date and count columns, and renders the visualization as an SVG. The code uses d3.csv for data loading, d3.scaleTime and d3.scaleLinear for axes, and d3.line with curveBasis to draw the line. It is built within a React framework, though the current implementation focuses on data preparation and chart setup.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed