Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

S&P 500 Index

Public visualization

Viewing a saved revision (read-only)

0abfd56ab77047dbb8972da6137b4bae

S&P 500 Index

0 stars1🌍 Public
Ppratamamp
Last edited Dec 25, 2019
Created on Dec 4, 2019
Forked from S&P 500 Index

This example visualizes the closing price of the S&P 500 index from 1980 to 1998 using a simple line chart. The chart displays the index's upward trend with individual data points marked by circles. The visualization is built with d3 v5, using d3.csv to load data, d3.scaleTime for the x-axis, d3.scaleLinear for the y-axis, and d3.line with curveLinear to draw the polyline. The graph is rendered into an SVG element with axes generated by d3.axisBottom and d3.axisLeft.

AI-generated description