Do show a legend for shots with final data.

Fixup for commit e4607a095b.
This commit is contained in:
D. Berge
2023-11-02 20:03:57 +01:00
parent fa031d5fc9
commit d91a1b1302

View File

@@ -106,7 +106,7 @@ export default {
...base,
showlegend: true,
title: {
text: this.data.x?.length
text: this.data[0]?.x?.length
? `Final vs raw <span style="font-size:smaller;">(x̅: %{data[0].meta.avg_x} ±%{data[0].meta.std_x} m; y̅: %{data[0].meta.avg_y} ±%{data[0].meta.std_y} m)</span>`
: `Final vs raw: no data`
},