# -*- coding: utf-8 -*- """ Created on Mon Jan 24 12:57:08 2022 @author: Pegdwende """ import dash from dash import dcc from dash import html import plotly.express as px import pandas as pd app = dash.Dash(__name__) # CHARGEMENT DES DONNEES df = pd.DataFrame({ "Mois": ["Janvier", "FĂ©vrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Decembre"], "Pluviometrie": [0, 0, 0, 5, 10, 25, 30, 35, 25, 15, 0, 0] }) #CREATION DE LA FIGURE fig = px.bar(df, x="Mois", y="Pluviometrie", barmode="group") #PRESENTATION app.layout = html.Div(children=[ html.H1(children='Super Dashboard!'), html.Div(children=''' Dash: A web application framework for your data. '''), dcc.Graph( id='example-graph', figure=fig ) ]) # EXECUTION if __name__ == '__main__': app.run_server(debug=True)