handleMouseEnter(cell, e)}
onMouseLeave={handleMouseLeave}
/>
@@ -386,13 +416,17 @@ const CheckerboardViz = ({
{hoveredCell.dayLabel}, {hoveredCell.hourLabel}
- {tooltipFormatter
- ? tooltipFormatter({
- value: hoveredCell.value,
- percentage: hoveredCell.percentage,
- total: hoveredCell.total,
- })
- : `${hoveredCell.percentage}% of hosts`}
+ {/* The current slot and anything after it haven't been collected
+ yet, so there's no value to report — show "No data". */}
+ {hoveredCell.isFuture && "No data"}
+ {!hoveredCell.isFuture &&
+ (tooltipFormatter
+ ? tooltipFormatter({
+ value: hoveredCell.value,
+ percentage: hoveredCell.percentage,
+ total: hoveredCell.total,
+ })
+ : `${hoveredCell.percentage}% of hosts`)}
)}
diff --git a/frontend/pages/DashboardPage/cards/ChartCard/_styles.scss b/frontend/pages/DashboardPage/cards/ChartCard/_styles.scss
index b671393720..29977f2868 100644
--- a/frontend/pages/DashboardPage/cards/ChartCard/_styles.scss
+++ b/frontend/pages/DashboardPage/cards/ChartCard/_styles.scss
@@ -366,6 +366,13 @@
fill: var(--level-5);
background-color: var(--level-5);
}
+
+ // The current timeframe (the slot we're still collecting data for) gets a
+ // visible outline. Declared after the level rules so it overrides the
+ // level-0 stroke at equal specificity.
+ &--current {
+ stroke: $ui-fleet-black-50;
+ }
}
}