From 0c6dbbddb5fa69e84f2952dd462acbeaf2e52be6 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Tue, 12 Sep 2023 13:02:45 +0200 Subject: [PATCH] fix: Initialize color mapping with all values --- CHANGELOG.md | 2 ++ app/charts/chart-config-ui-options.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba56e65ff..d66e9f9a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ You can also check the [release page](https://github.com/visualize-admin/visuali ## Unreleased +- Fixes + - It's now again possible to map all colors for hierarchical dimensions used as segmentation - Misc - Improved `langString` error message diff --git a/app/charts/chart-config-ui-options.ts b/app/charts/chart-config-ui-options.ts index 39a5656f1..746f48605 100644 --- a/app/charts/chart-config-ui-options.ts +++ b/app/charts/chart-config-ui-options.ts @@ -448,7 +448,7 @@ const defaultSegmentOnChange: OnEncodingChange< ); const colorMapping = mapValueIrisToColor({ palette, - dimensionValues: selectedValues, + dimensionValues: component ? component.values : selectedValues, }); const multiFilter = makeMultiFilter(selectedValues.map((d) => d.value));