Skip to content

Commit 542c4f9

Browse files
Add Dash app with bar chart example
Signed-off-by: Fabiana ⚡️ Campanari <113218619+FabianaCampanari@users.noreply.github.com>
1 parent 5037cae commit 542c4f9

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from dash import dcc
2+
import dash
3+
from dash import html
4+
5+
app = dash.Dash(__name__)
6+
7+
app.layout = html.Div([
8+
html.H1("Exemplo de Layout com Gráfico"),
9+
dcc.Graph(
10+
id="example-graph",
11+
figure={
12+
"data": [
13+
{"x": [1, 2, 3], "y": [4, 1, 2], "type": "bar", "name": "SF"}
14+
],
15+
"layout": {"title": "Gráfico Simples"},
16+
},
17+
),
18+
])
19+
20+
21+
if __name__ == "__main__":
22+
app.run(debug=True)

0 commit comments

Comments
 (0)