setHoverKey(d.hoverKey)}
onMouseLeave={() => setHoverKey(null)}
/>
@@ -253,6 +281,7 @@ export function AnalyticsChartPie({
key={`inner-${d.name}`}
fill={`var(--color-compare-${d.name})`}
opacity={inactive ? 0.22 : 0.95}
+ style={segmentTransitionStyle}
onMouseEnter={() => setHoverKey(d.hoverKey)}
onMouseLeave={() => setHoverKey(null)}
/>
@@ -263,24 +292,33 @@ export function AnalyticsChartPie({
-
-
- {activeRow ? activeRow.label : strings.pieTotalCenter}
+
+
+ {centerDisplayRow ? centerDisplayRow.label : strings.pieTotalCenter}
-
- {fmtValue(activeRow ? activeRow.value : canonicalTotal, yFormatKind)}
+
+ {fmtValue(centerDisplayRow ? centerDisplayRow.value : canonicalTotal, yFormatKind)}
-
-
- {startLabel} – {endLabel}
-
- {showCompare && (
-
- )}
-
+ {(showDateRange || showCompare) && (
+
+ {showDateRange && (
+
+ {startLabel} – {endLabel}
+
+ )}
+ {showCompare && (
+
+ )}
+
+ )}