-
Notifications
You must be signed in to change notification settings - Fork 10
/
app_2ch.py
45 lines (34 loc) · 874 Bytes
/
app_2ch.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import dash
import dash_core_components as dcc
import dash_html_components as html
from plotly import graph_objs as go
import pandas as pd
app = dash.Dash(__name__)
server = app.server
df = pd.read_csv('./data/2014_world_gdp_with_codes.csv')
app.layout = html.Div([
html.H1("Mapas"),
dcc.Graph(
figure= go.Figure(
data = [
go.Scattergeo(
lat=[-31.44234],
lon=[-64.19320],
)
]
)
),
dcc.Graph(
figure= go.Figure(
data = [
go.Choropleth(
locations = df.CODE,
z = df.GDP,
text = df.COUNTRY
)
]
)
),
])
if __name__ == '__main__':
app.run_server(debug=True)