From 239e7433f0c93e59aa4cf9c1725581482fe7aba5 Mon Sep 17 00:00:00 2001 From: Atul Mohan Date: Sun, 13 Mar 2022 14:21:20 -0700 Subject: [PATCH] Add daily stats to console --- 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 11b02523c89d..442df4ba73c6 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!,