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 }), + }); }); }