ui: show dot in timeline if there's only one entry

This commit is contained in:
nick-delirium 2025-05-30 16:59:53 +02:00
parent 6ea7ca6aa2
commit 66b3708cce
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -290,7 +290,7 @@ export function createSeries(
datasetId,
encode: { x: 'idx', y: fullName },
lineStyle: dashed ? { type: 'dashed' } : undefined,
showSymbol: false,
showSymbol: data.chart.length === 1,
// custom flag to hide prev data from legend
_hideInLegend: hideFromLegend,
itemStyle: { opacity: 1 },