flask-volt-dashboard icon indicating copy to clipboard operation
flask-volt-dashboard copied to clipboard

Plot Data on Dashboard

Open Damon0603 opened this issue 2 years ago • 2 comments

Hi , I was wondering how to implement a matplotlib plot on the dashboard with own data. Is there an easy approach ?

Cheers

Damon0603 avatar Jan 04 '23 14:01 Damon0603

Hello @Damon0603

Can you tell us more regarding this use case?

Here is a simple Flask &MatplotLIB usage that generates an image on-the-fly

https://stackoverflow.com/questions/50728328/python-how-to-show-matplotlib-in-flask

app-generator avatar Jan 05 '23 06:01 app-generator

Hey thank you for your response.

Well I have trouble plotting data like this.

`import pandas as pd import numpy as np import matplotlib.pyplot as plt import os

df = pd.read_csv('AAPL_Montly_updates.csv',sep =",", index_col='Date')

df['Adj Close'].plot(figsize=(10,8)) plt.title('Closing price')`

I would like to show a simple plot in the app. I somehow can´t find a proper solution to that.

html is like the template : ` {% block stylesheets %}{% endblock stylesheets %} {% block content %}

Hallo
{% include "includes/footer.html" %}

{% endblock content %}

{% block javascripts %}{% endblock javascripts %}`

Damon0603 avatar Jan 25 '23 11:01 Damon0603

Hello!

Sorry for the delay. The new AppSeed Service now manages the project and related issues:

https://app-generator.dev/ - Open-Source Platform.

Ty!

app-generator avatar Dec 18 '24 19:12 app-generator