Skip to main content
100%

Line Chart from CSV with Plotly

✓ Published1🌍 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.

MIT Licensed

Similar vizzes