Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Basic line chart using CSV

Public visualization

Viewing a saved revision (read-only)

5fc9b83d17dc47adb724399d689a1696

Basic line chart using CSV

0 stars1🌍 Public
GGayan Priyadarshana
Last edited Jul 28, 2023
Created on Jul 28, 2023

This example shows a basic line chart that plots time against closing values from a CSV file. It fetches remote CSV data, parses the rows, and maps the designated `time` and `Closing` columns to the x- and y-axes. The chart renders as a scatter trace with both lines and markers using Plotly’s `Plotly.newPlot` into a `div`. The code uses the Fetch API to load the CSV and manually splits rows and headers for column lookup.

AI-generated description

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

See also React Starter.