cambiamos bullet por angular

parent 542681b3
...@@ -62,7 +62,7 @@ app.layout = html.Div( ...@@ -62,7 +62,7 @@ app.layout = html.Div(
], ],
className="wrapper" className="wrapper"
), ),
], ], style={"display":"inline-block"},
), ),
html.Div( html.Div(
children=[ children=[
...@@ -86,7 +86,7 @@ app.layout = html.Div( ...@@ -86,7 +86,7 @@ app.layout = html.Div(
], ],
className="wrapper" className="wrapper"
), ),
], ], style={"display":"inline-block"},
), ),
html.Div( html.Div(
children=[ children=[
...@@ -110,7 +110,7 @@ app.layout = html.Div( ...@@ -110,7 +110,7 @@ app.layout = html.Div(
], ],
className="wrapper" className="wrapper"
), ),
], ], style={"display":"inline-block"},
), ),
] ]
) )
...@@ -134,7 +134,7 @@ def update_charts(ncomidas, glucosa, nvisitas): ...@@ -134,7 +134,7 @@ def update_charts(ncomidas, glucosa, nvisitas):
value = filtered_data["medibles"].count(), value = filtered_data["medibles"].count(),
domain = {'x': [0, 1], 'y': [0, 1]}, domain = {'x': [0, 1], 'y': [0, 1]},
title = {'text': "Ptes"}, title = {'text': "Ptes"},
gauge = {'axis': {'range': [None, total_data]}, 'shape': 'bullet'})) gauge = {'axis': {'range': [None, total_data]}, 'shape': 'angular'}))
glucosa_data = data.query("Days_glucose >= @glucosa") glucosa_data = data.query("Days_glucose >= @glucosa")
glucosa_chart_figure = go.Figure(go.Indicator( glucosa_chart_figure = go.Figure(go.Indicator(
...@@ -142,7 +142,7 @@ def update_charts(ncomidas, glucosa, nvisitas): ...@@ -142,7 +142,7 @@ def update_charts(ncomidas, glucosa, nvisitas):
value = glucosa_data["medibles"].count(), value = glucosa_data["medibles"].count(),
domain = {'x': [0, 1], 'y': [0, 1]}, domain = {'x': [0, 1], 'y': [0, 1]},
title = {'text': "Ptes"}, title = {'text': "Ptes"},
gauge = {'axis': {'range': [None, total_data]}, 'shape': 'bullet'})) gauge = {'axis': {'range': [None, total_data]}, 'shape': 'angular'}))
visitas_data = data.query("Days_glucose >= @nvisitas") visitas_data = data.query("Days_glucose >= @nvisitas")
visitas_chart_figure = go.Figure(go.Indicator( visitas_chart_figure = go.Figure(go.Indicator(
...@@ -150,7 +150,7 @@ def update_charts(ncomidas, glucosa, nvisitas): ...@@ -150,7 +150,7 @@ def update_charts(ncomidas, glucosa, nvisitas):
value = visitas_data["medibles"].count(), value = visitas_data["medibles"].count(),
domain = {'x': [0, 1], 'y': [0, 1]}, domain = {'x': [0, 1], 'y': [0, 1]},
title = {'text': "Ptes"}, title = {'text': "Ptes"},
gauge = {'axis': {'range': [None, total_data]}, 'shape': 'bullet'})) gauge = {'axis': {'range': [None, total_data]}, 'shape': 'angular'}))
return comidas_chart_figure, glucosa_chart_figure, visitas_chart_figure return comidas_chart_figure, glucosa_chart_figure, visitas_chart_figure
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment