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
bf7fea60
Commit
bf7fea60
authored
Jun 05, 2025
by
Jose Luis Gordillo Ruiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eliminación de la grafica 'detalle de visitas'
la información se muestra de mejor manera en otras gráficas ahora.
parent
bc6f3444
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
91 deletions
+2
-91
dinamyc.py
+2
-91
No files found.
dinamyc.py
View file @
bf7fea60
...
...
@@ -204,26 +204,6 @@ app.layout = html.Div(children=[
],
style
=
{
"display"
:
"flex"
,
"flexDirection"
:
"row"
},),
dcc
.
Graph
(
id
=
"datos_por_paciente"
),
],
className
=
"wrapper"
),
# cobertura de visitas
html
.
Div
(
children
=
[
html
.
H1
(
"Detalle de visitas"
,
className
=
"header-title2"
),
html
.
P
(
"..en construcción.."
,
style
=
{
"color"
:
"red"
,
"font-style"
:
"italic"
}),
html
.
Div
(
children
=
"Visita"
,
className
=
"menu-title"
),
dcc
.
Dropdown
(
id
=
"visitaSel"
,
options
=
[
{
"label"
:
1
,
"value"
:
1
},
{
"label"
:
2
,
"value"
:
2
},
{
"label"
:
3
,
"value"
:
3
},
{
"label"
:
4
,
"value"
:
4
}
],
value
=
1
,
clearable
=
False
,
searchable
=
False
,
className
=
"dropdown"
,
),
dcc
.
Graph
(
id
=
"multi-visitas"
),
],
className
=
"wrapper"
,),
# cobertura de pacientes por prueba. working.
html
.
Div
(
children
=
[
html
.
H1
(
"Cobertura de pacientes por protocolo."
,
className
=
"header-title2"
),
...
...
@@ -397,81 +377,12 @@ def update_por_protocolo(visita):
return
figura
@app.callback
(
Output
(
"multi-visitas"
,
"figure"
),
Output
(
"mesurables"
,
"figure"
),
Input
(
"visitaSel"
,
"value"
),
Input
(
"mesurableEt"
,
"value"
),
)
def
update_charts
(
visitaSel
,
mesurableEt
):
def
update_charts
(
mesurableEt
):
contados
=
{}
total_data
=
len
(
data
.
index
)
gauges
=
{
'shape'
:
"bullet"
,
'axis'
:
{
'range'
:
[
None
,
100
]},
'steps'
:
[
{
'range'
:
[
0
,
25
],
'color'
:
"lightcyan"
},
{
'range'
:
[
25
,
50
],
'color'
:
"lightblue"
},
{
'range'
:
[
50
,
75
],
'color'
:
"skyblue"
},
{
'range'
:
[
75
,
100
],
'color'
:
"steelblue"
}],
'bar'
:
{
'color'
:
"blue"
},
}
numbers
=
{
'suffix'
:
'
%
'
,
'valueformat'
:
'.2f'
}
modes
=
"number+gauge"
multiV
=
go
.
Figure
()
for
medicion
in
esperados
.
keys
():
contados
[
medicion
]
=
len
(
data
.
loc
[
data
[
medicion
+
str
(
visitaSel
)]
>
0
])
multiV
.
add_trace
(
go
.
Indicator
(
value
=
100
*
contados
[
"antrop-mets"
]
/
Total_incluidos
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.90
,
1
]},
title
=
{
'text'
:
"Antropometría"
},
mode
=
modes
,
number
=
numbers
,
gauge
=
gauges
,
))
multiV
.
add_trace
(
go
.
Indicator
(
value
=
100
*
contados
[
"quimica-S"
]
/
Total_incluidos
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.80
,
0.9
]},
title
=
{
'text'
:
"QS"
},
mode
=
modes
,
number
=
numbers
,
gauge
=
gauges
,
))
multiV
.
add_trace
(
go
.
Indicator
(
value
=
100
*
contados
[
"physiological"
]
/
Total_incluidos
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.7
,
0.8
]},
title
=
{
'text'
:
"Fisiológicos"
},
mode
=
modes
,
number
=
numbers
,
gauge
=
gauges
,
))
multiV
.
add_trace
(
go
.
Indicator
(
value
=
100
*
contados
[
"comp-corp"
]
/
Total_incluidos
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.6
,
0.7
]},
title
=
{
'text'
:
"C.Corporal"
},
mode
=
modes
,
number
=
numbers
,
gauge
=
gauges
,
))
multiV
.
add_trace
(
go
.
Indicator
(
value
=
100
*
contados
[
"tolerancia"
]
/
Total_incluidos
,
domain
=
{
'x'
:
[
0.25
,
1
],
'y'
:
[
0.5
,
0.6
]},
title
=
{
'text'
:
"Curvas de Tolerancia"
},
mode
=
modes
,
number
=
numbers
,
gauge
=
gauges
,
))
...
...
@@ -504,7 +415,7 @@ def update_charts( visitaSel, mesurableEt):
}
}
return
multiV
,
mesurables
return
mesurables
if
__name__
==
"__main__"
:
...
...
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