Creare dashboard con Dash e Plotly
Alex Scriven
Data Scientist
dash.html.H1().Div()<div>
<div style=
"background-color: red;
width:250; height:250;">
</div>
<div style=
"background-color: lightblue;
width:250; height:250;">
<h1>This box</h1>
</div>
</div>
.Br() = A capo.Img() = Inserisci un'immagine
.Ul() \ .Ol() & .Li() = Crea liste.Ul() per elenco non ordinato (punti elenco, come questi!).Ol() per elenco ordinato (numerato).Li() per ogni elemento della lista
app.layout = [html.Img(src='www.website.com/logo.png'), html.H1("Our Sales Dashboard")]

Imposta e formatta il testo
.P() o .Span() = Inserisci testo semplice.P() o .Span()).B() = Grassetto per parte del testo.I() = Corsivo per parte del testo
Formattazione più complessa:
app.layout = [ html.H1("Our Sales Dashboard"),html.Span(children=[f"Prepared: {datetime.now().date()}"," by ", html.B("Jessie Parker, "),html.I("Data Scientist")])]

$$
app.layout = [
html.H1("Our Sales Dashboard"),
html.Span(children=[
f"Prepared: {datetime.now().date()}",
html.Br(),
" by ", html.B("Jessie Parker, "),
html.Br(),
html.I("Data Scientist")])
]

Creare dashboard con Dash e Plotly