From 24415b79b6fc63c883fa4434a2c61fe7bd9da12c Mon Sep 17 00:00:00 2001
From: edgar
Date: Thu, 3 Dec 2026 00:24:50 -0600
Subject: [PATCH] Quitar la barra de Plotly en las curvas de la ficha
---
src/app/paciente/paciente.html | 4 ++--
src/app/paciente/risk-series.ts | 2 +-
src/app/plot.ts | 7 ++++++-
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/app/paciente/paciente.html b/src/app/paciente/paciente.html
index dcc827d..724cf0e 100644
--- a/src/app/paciente/paciente.html
+++ b/src/app/paciente/paciente.html
@@ -298,7 +298,7 @@
@if (riskSeries.value()?.length) {
} @else {
-
+
}
}
@@ -615,7 +615,7 @@
Kaplan-Meier de pacientes con sus mismos valores (IC 95 % Greenwood log-log; n =
{{ c.n }}, fallecidos = {{ c.fallecidos }}).
-
+
} @else {
{{ c.missing }}
}
diff --git a/src/app/paciente/risk-series.ts b/src/app/paciente/risk-series.ts
index 9085c96..6abc285 100644
--- a/src/app/paciente/risk-series.ts
+++ b/src/app/paciente/risk-series.ts
@@ -78,7 +78,7 @@ export function parseSeries(answer: Parameters): Series[] {
@for (assumption of assumptions(); track assumption) {
{{ assumption }}
}
-
+
}
@if (!available().length) {
No disponible: datos insuficientes.
diff --git a/src/app/plot.ts b/src/app/plot.ts
index d29743b..eb6af4a 100644
--- a/src/app/plot.ts
+++ b/src/app/plot.ts
@@ -75,12 +75,17 @@ const CONFIG: Partial = {
export class Plot implements OnDestroy {
readonly figure = input.required();
readonly height = input(320);
+ /** Plotly's buttons over the chart; a record's curves go without them */
+ readonly toolbar = input(true);
private readonly host = viewChild.required>('host');
constructor() {
effect(() => {
const { data, layout } = this.figure();
- void Plotly.react(this.host().nativeElement, withRoom(data), layoutOf(layout), CONFIG);
+ void Plotly.react(this.host().nativeElement, withRoom(data), layoutOf(layout), {
+ ...CONFIG,
+ ...(this.toolbar() ? {} : { displayModeBar: false }),
+ });
});
}