From eb6de94e1f1a9d5e38f6ef16971be8d3763a83d8 Mon Sep 17 00:00:00 2001 From: Atul Mohan Date: Thu, 5 May 2022 15:31:21 -0700 Subject: [PATCH] Add daily stats to console (#12329) --- web-console/src/components/segment-timeline/bar-group.tsx | 1 + .../src/components/segment-timeline/segment-timeline.tsx | 1 + .../src/components/segment-timeline/stacked-bar-chart.tsx | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/web-console/src/components/segment-timeline/bar-group.tsx b/web-console/src/components/segment-timeline/bar-group.tsx index 11b02523c89..442df4ba73c 100644 --- a/web-console/src/components/segment-timeline/bar-group.tsx +++ b/web-console/src/components/segment-timeline/bar-group.tsx @@ -56,6 +56,7 @@ export class BarGroup extends React.Component { datasource: entry.datasource, xValue: entry.x, yValue: entry.y, + dailySize: entry.dailySize, }; return (
Datasource: {hoverOn.datasource}
Time: {hoverOn.xValue}
+
+ {`${ + activeDataType === 'countData' ? 'Daily total count:' : 'Daily total size:' + } ${formatTick(hoverOn.dailySize!)}`} +
{`${activeDataType === 'countData' ? 'Count:' : 'Size:'} ${formatTick( hoverOn.yValue!,