Timeseries Plots

Timeseries plot are based on date index


In the example below, we plot the yearly trend of a financial dataset. First, we reset the index to the Date column.

<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.plot.ly/plotly-1.2.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/bundle.min.js"></script>
<div id="plot_div"></div>
.then(df => {
var layout = {
title: 'A financial charts',
xaxis: {
title: 'Date',
yaxis: {
title: 'Count',
new_df = df.set_index({ key: "Date" })
new_df.plot("plot_div").line({ columns: ["AAPL.Open", "AAPL.High"], layout: layout })
}).catch(err => {

To set configuration for your plots, see the Configuring your plot page