There is a simple flask app which writes statistics-table from db to a page. How can I plot plotly.express chart on this page? Code for chart that I want to integrate to a flask app: (took from https://plotly.com/python/time-series/)
# Using plotly.express
import plotly.express as px
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/...')
fig = px.line(df, x='Date', y='AAPL.High')
fig.show()
Aucun commentaire:
Enregistrer un commentaire