diff --git a/frontend/app/components/Charts/utils.ts b/frontend/app/components/Charts/utils.ts index c20733dcc..076add36f 100644 --- a/frontend/app/components/Charts/utils.ts +++ b/frontend/app/components/Charts/utils.ts @@ -102,18 +102,18 @@ export function customTooltipFormatter(uuid: string) {
${fullname}
- +
-
+
Total:
@@ -127,7 +127,7 @@ export function customTooltipFormatter(uuid: string) { (window as any).__seriesColorMap?.[uuid]?.[partnerName] || '#999'; str += `
-
+
${isPrevious ? 'Current' : 'Previous'} Total:
@@ -168,9 +168,9 @@ export function customTooltipFormatter(uuid: string) {
${seriesName}
@@ -179,7 +179,7 @@ export function customTooltipFormatter(uuid: string) {
-
+
${firstTs ? formatTimeOrDate(firstTs) : categoryLabel}
@@ -194,7 +194,7 @@ export function customTooltipFormatter(uuid: string) { (window as any).__seriesColorMap?.[uuid]?.[partnerName] || '#999'; tooltipContent += `
-
+
${secondTs ? formatTimeOrDate(secondTs) : categoryLabel}
@@ -229,13 +229,13 @@ function buildCompareTag(val: number, prevVal: number): string { return `
${arrow} ${absDelta} @@ -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 },