detalles de gráficas de barras

parent 2b79a43a
......@@ -283,7 +283,7 @@ def update_por_protocolo(visita):
columnas = list(set(df1.columns).intersection(set(protocolos[protocolo])))
cuentas = 100 * df1[columnas].replace("",np.nan).count() / len(df1)
figura.add_trace(
go.Bar(x=cuentas.index, y=cuentas),
go.Bar(x=cuentas.index, y=cuentas, textposition='auto', text=cuentas),
row = lrow,
col = lcol,
)
......@@ -291,6 +291,8 @@ def update_por_protocolo(visita):
if lcol > 3:
lcol = 1
lrow = lrow + 1
figura.update_layout(showlegend=False)
figura.update_traces(texttemplate='%{text:.2s}', textposition='auto')
return figura
......
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