Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
inventario
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Luis Gordillo Ruiz
inventario
Commits
22d9223d
Commit
22d9223d
authored
Aug 21, 2024
by
Jose Luis Gordillo Ruiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
más modificaciones para dejar solo las fuentes originales
parent
033447c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
21 deletions
+27
-21
dinamyc.py
+27
-21
No files found.
dinamyc.py
View file @
22d9223d
...
@@ -114,23 +114,6 @@ app.layout = html.Div(
...
@@ -114,23 +114,6 @@ app.layout = html.Div(
value
=
Visitas_e
,
value
=
Visitas_e
,
marks
=
{
1
:
"1"
,
2
:
"2"
,
3
:
"3"
,
4
:
"4"
}
marks
=
{
1
:
"1"
,
2
:
"2"
,
3
:
"3"
,
4
:
"4"
}
),
),
"Fisiometría"
,
dcc
.
Slider
(
id
=
"min_fismet"
,
min
=
1
,
max
=
Visitas_e
,
value
=
Visitas_e
,
marks
=
{
1
:
"1"
,
2
:
"2"
,
3
:
"3"
,
4
:
"4"
}
),
"qs"
,
dcc
.
Slider
(
id
=
"min_qs"
,
min
=
1
,
max
=
Visitas_e
,
value
=
Visitas_e
,
marks
=
{
1
:
"1"
,
2
:
"2"
,
3
:
"3"
,
4
:
"4"
}
),
"Visitas"
,
"Visitas"
,
dcc
.
Slider
(
dcc
.
Slider
(
id
=
"min_visitas"
,
id
=
"min_visitas"
,
...
@@ -148,7 +131,29 @@ app.layout = html.Div(
...
@@ -148,7 +131,29 @@ app.layout = html.Div(
className
=
"wrapper"
),
className
=
"wrapper"
),
html
.
Div
(
html
.
Div
(
children
=
[
children
=
[
html
.
Div
(
"Aqui van las gráficas de food analisis"
,
className
=
"wrapper"
),
html
.
Div
(
"Detalle por participante"
,
className
=
"wrapper"
),
dcc
.
Graph
(
figure
=
{
"data"
:
[
{
"y"
:
data
[
"Selectedfoods"
],
"x"
:
data
[
"nutrid"
],
"type"
:
"bar"
},
],
"layout"
:
{
"title"
:
"Comidas por paciente"
}
}),
dcc
.
Graph
(
figure
=
{
"data"
:
[
{
"y"
:
data
[
"Days_glucose"
],
"x"
:
data
[
"nutrid"
],
"type"
:
"bar"
},
],
"layout"
:
{
"title"
:
"Dias de glucómetro por paciente"
}
}),
dcc
.
Graph
(
dcc
.
Graph
(
figure
=
{
figure
=
{
"data"
:
[
"data"
:
[
...
@@ -160,8 +165,9 @@ app.layout = html.Div(
...
@@ -160,8 +165,9 @@ app.layout = html.Div(
],
],
"layout"
:
{
"title"
:
"
Comidas analizables por
paciente"
}
"layout"
:
{
"title"
:
"
AUCs
paciente"
}
}),
}),
dcc
.
Graph
(
dcc
.
Graph
(
figure
=
scat
),
figure
=
scat
),
...
@@ -245,9 +251,9 @@ def update_charts(etapaSel,min_comidas, min_glucosa, min_reloj, min_microbiota,
...
@@ -245,9 +251,9 @@ def update_charts(etapaSel,min_comidas, min_glucosa, min_reloj, min_microbiota,
gauge
=
gauges
,
gauge
=
gauges
,
))
))
glucosa_data
=
data
.
query
(
"Days_glucose >= @min_glucosa"
)
multi
.
add_trace
(
go
.
Indicator
(
multi
.
add_trace
(
go
.
Indicator
(
value
=
100
*
len
(
glucosa_data
.
index
)
/
Total_
paciente
s
,
value
=
100
*
len
(
glucosa_data
.
index
)
/
Total_
incluido
s
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.8
,
0.9
]},
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.8
,
0.9
]},
title
=
{
'text'
:
"Glucómetro"
},
title
=
{
'text'
:
"Glucómetro"
},
mode
=
modes
,
mode
=
modes
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment