Skip to main content
100%

Line Chart from CSV with Plotly

✓ Published0🌍 Public
GGayan Priyadarshana
Last edited Jul 31, 2023
Created on Jul 28, 2023

This example shows an interactive line chart that displays the sum of closing values per day from a CSV file, with date range filtering via input fields. Users can select a from-date and to-date, and click an update button to zoom the x-axis accordingly. The visualization uses Plotly’s `newPlot` and `relayout` methods to render and update the scatter trace with lines and markers, while fetching and parsing the CSV data using the Fetch API. Default date inputs are automatically set to the first and last dates in the dataset.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes