Construindo Dashboards com 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() = Quebra de linha.Img() = Inserir imagem
.Ul() \ .Ol() & .Li() = Criar listas.Ul() para lista não ordenada (marcadores, como estas!).Ol() para lista ordenada (numerada).Li() para cada item da lista
app.layout = [html.Img(src='www.website.com/logo.png'), html.H1("Our Sales Dashboard")]

Definir e formatar texto
.P() ou .Span() = Inserir texto simples.P() ou .Span()).B() = Negrito em parte do texto.I() = Itálico em parte do texto
Formatação mais complexa:
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")])
]

Construindo Dashboards com Dash e Plotly