e soprattutto facciamo un po' di ordine
This commit is contained in:
@@ -67,6 +67,19 @@ def generate_grafico_barrette_df(dataframe, graphTitle):
|
||||
)
|
||||
fig.show()
|
||||
|
||||
def generate_grafico_torri_mensile_df(dataframe, graphTitle):
|
||||
# Crea il grafico a colonne mensili con colori diversi
|
||||
fig = px.bar(
|
||||
dataframe,
|
||||
x='Mese',
|
||||
y='gen_pv_100_kWp',
|
||||
color='Mese',
|
||||
title='Produttività Fotovoltaica Mensile',
|
||||
labels={'gen_pv_100_kWp': 'Energia [kWh]', 'Mese': 'Mese'},
|
||||
color_discrete_sequence=px.colors.qualitative.Pastel
|
||||
)
|
||||
fig.show()
|
||||
|
||||
def export_hourly_pv_productivity(result_ac_energies_to_csv_df, path_export_hourly):
|
||||
"""
|
||||
Esporta la produttività fotovoltaica aggregata su base oraria.
|
||||
@@ -107,17 +120,7 @@ fig.show()
|
||||
df_monthly = df.resample('M').sum()
|
||||
df_monthly['Mese'] = df_monthly.index.strftime('%B %Y') # Nome mese e anno
|
||||
|
||||
# Crea il grafico a colonne mensili con colori diversi
|
||||
fig = px.bar(
|
||||
df_monthly,
|
||||
x='Mese',
|
||||
y='gen_pv_100_kWp',
|
||||
color='Mese',
|
||||
title='Produttività Fotovoltaica Mensile',
|
||||
labels={'gen_pv_100_kWp': 'Energia [kWh]', 'Mese': 'Mese'},
|
||||
color_discrete_sequence=px.colors.qualitative.Pastel
|
||||
)
|
||||
fig.show()
|
||||
|
||||
|
||||
import plotly.graph_objects as go
|
||||
|
||||
|
||||
Reference in New Issue
Block a user