Decir una sola vez el supuesto de la referencia NCI
This commit is contained in:
@@ -75,10 +75,8 @@ export function parseSeries(answer: Parameters): Series[] {
|
||||
}
|
||||
</div>
|
||||
@if (selected().length) {
|
||||
@for (s of selected(); track s.id) {
|
||||
@for (assumption of s.assumptions; track assumption) {
|
||||
<p class="muted">{{ name(s) }}: {{ assumption }}</p>
|
||||
}
|
||||
@for (assumption of assumptions(); track assumption) {
|
||||
<p class="muted">{{ assumption }}</p>
|
||||
}
|
||||
<app-plot [figure]="figure()" [height]="340" />
|
||||
}
|
||||
@@ -115,6 +113,10 @@ export class RiskSeries {
|
||||
protected readonly selected = computed(() =>
|
||||
this.available().filter((s) => this.chosen().has(s.id)),
|
||||
);
|
||||
/** what the chosen series assume, each said once */
|
||||
protected readonly assumptions = computed(() => [
|
||||
...new Set(this.selected().flatMap((s) => s.assumptions)),
|
||||
]);
|
||||
protected readonly figure = computed(() => {
|
||||
const shown = this.selected().map((s) => ({
|
||||
model: s.id,
|
||||
|
||||
Reference in New Issue
Block a user