Skip to content

Commit

Permalink
Merge pull request #1171 from visualize-admin/fix/disappearing-colors
Browse files Browse the repository at this point in the history
fix: Initialize color mapping with all values
  • Loading branch information
bprusinowski authored Sep 12, 2023
2 parents 0fcf5b0 + 0c6dbbd commit e0a5198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion app/charts/chart-config-ui-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

1 comment on commit e0a5198

@vercel
Copy link

@vercel vercel bot commented on e0a5198 Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

visualization-tool – ./

visualization-tool-git-main-ixt1.vercel.app
visualization-tool-ixt1.vercel.app
visualization-tool-alpha.vercel.app

Please sign in to comment.