From d91a1b1302b0ab3df909a4966dbbad65a4b5f088 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Thu, 2 Nov 2023 20:03:57 +0100 Subject: [PATCH] Do show a legend for shots with final data. Fixup for commit e4607a095b91b4581d2c26aede9617efd295e421. --- .../src/components/graphs/project/sequence/inline-crossline.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/www/client/source/src/components/graphs/project/sequence/inline-crossline.vue b/lib/www/client/source/src/components/graphs/project/sequence/inline-crossline.vue index 2005154..c7b57e9 100644 --- a/lib/www/client/source/src/components/graphs/project/sequence/inline-crossline.vue +++ b/lib/www/client/source/src/components/graphs/project/sequence/inline-crossline.vue @@ -106,7 +106,7 @@ export default { ...base, showlegend: true, title: { - text: this.data.x?.length + text: this.data[0]?.x?.length ? `Final vs raw (x̅: %{data[0].meta.avg_x} ±%{data[0].meta.std_x} m; y̅: %{data[0].meta.avg_y} ±%{data[0].meta.std_y} m)` : `Final vs raw: no data` },