typeof datum.breakdown_value === 'string' && (
diff --git a/frontend/src/scenes/insights/views/WorldMap/worldMapLogic.tsx b/frontend/src/scenes/insights/views/WorldMap/worldMapLogic.tsx
index 1b9f62ed57c40..e2bc2dfb32e1b 100644
--- a/frontend/src/scenes/insights/views/WorldMap/worldMapLogic.tsx
+++ b/frontend/src/scenes/insights/views/WorldMap/worldMapLogic.tsx
@@ -11,7 +11,10 @@ export const worldMapLogic = kea([
key(keyForInsightLogicProps('new')),
path((key) => ['scenes', 'insights', 'WorldMap', 'worldMapLogic', key]),
connect((props: InsightLogicProps) => ({
- values: [insightVizDataLogic(props), ['insightData', 'trendsFilter', 'series', 'querySource']],
+ values: [
+ insightVizDataLogic(props),
+ ['insightData', 'trendsFilter', 'breakdownFilter', 'series', 'querySource'],
+ ],
})),
actions({
showTooltip: (countryCode: string, countrySeries: TrendResult | null) => ({ countryCode, countrySeries }),
diff --git a/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx b/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx
index 0a317c32ca041..38b15a0b81636 100644
--- a/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx
+++ b/frontend/src/scenes/trends/viz/ActionsHorizontalBar.tsx
@@ -32,6 +32,7 @@ export function ActionsHorizontalBar({ showPersonsModal = true }: ChartParams):
showValuesOnSeries,
isDataWarehouseSeries,
querySource,
+ breakdownFilter,
} = useValues(trendsDataLogic(insightProps))
function updateData(): void {
@@ -47,12 +48,10 @@ export function ActionsHorizontalBar({ showPersonsModal = true }: ChartParams):
breakdownValues: _data.map((item) => item.breakdown_value),
breakdownLabels: _data.map((item) => {
return formatBreakdownLabel(
- cohorts,
- formatPropertyValueForDisplay,
item.breakdown_value,
- item.filter?.breakdown,
- item.filter?.breakdown_type,
- false
+ breakdownFilter,
+ cohorts,
+ formatPropertyValueForDisplay
)
}),
compareLabels: _data.map((item) => item.compare_label),
diff --git a/frontend/src/scenes/trends/viz/ActionsPie.tsx b/frontend/src/scenes/trends/viz/ActionsPie.tsx
index 495258c180fd5..5bdb5b8ea8c8c 100644
--- a/frontend/src/scenes/trends/viz/ActionsPie.tsx
+++ b/frontend/src/scenes/trends/viz/ActionsPie.tsx
@@ -42,6 +42,7 @@ export function ActionsPie({
pieChartVizOptions,
isDataWarehouseSeries,
querySource,
+ breakdownFilter,
} = useValues(trendsDataLogic(insightProps))
const renderingMetadata = context?.chartRenderingMetadata?.[ChartDisplayType.ActionsPie]
@@ -61,12 +62,10 @@ export function ActionsPie({
breakdownValues: indexedResults.map((item) => item.breakdown_value),
breakdownLabels: indexedResults.map((item) => {
return formatBreakdownLabel(
- cohorts,
- formatPropertyValueForDisplay,
item.breakdown_value,
- item.filter?.breakdown,
- item.filter?.breakdown_type,
- false
+ breakdownFilter,
+ cohorts,
+ formatPropertyValueForDisplay
)
}),
compareLabels: indexedResults.map((item) => item.compare_label),