Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart from CSV with Plotly

Public visualization

Viewing a saved revision (read-only)

a8bf9f0f1c3f44d5a287aeb29927f50b

Line Chart from CSV with Plotly

0 stars1🌍 Public
GGayan Priyadarshana
Last edited Jul 28, 2023
Created on Jul 28, 2023
Forked from HTML Starter

This example shows a line chart with markers, plotting time on the x-axis against closing values on the y-axis. It uses Plotly’s `newPlot` to render the scatter trace into an HTML div. Data is fetched from a remote CSV file using the Fetch API, then parsed manually by splitting rows and commas into an array. Column indices are mapped from headers, allowing x and y series to be extracted by name. The page loads Plotly from a CDN and logs headers and parsed data to the console for debugging.

AI-generated description

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

See also React Starter.