-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Allow multiple identical labels in charts #1019
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Would provide a way to differentiate observations client side otherwise we only have the label and it is not sufficient
...to be able to retrieve observations based on IRI and not solely on label
075a3bb
to
fa3317e
Compare
fa3317e
to
0eddd9d
Compare
52edd10
to
a0ab0c1
Compare
...there are two rendering modes for base maps, overlaid or interleaved (see https://deck.gl/docs/get-started/using-with-map). Previously we used interleaved mode, which caused the problems with hovering over overlapping shapes (wrong element was highlighted). Setting the option to recommended, overlaid mode, fixes the tooltip issues (and seems to have no impact on overall performance / behavior of the map).
...which led to undefined dataset when fetching hierarchies in ColorLegend and thus wrong (missing) hierarchical division
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👏 Very happy to see that the hook could be extracted, and tested, I was wondering about that while reviewing the commits. Thanks for also fixing the other problems !
- Interleaved should be there for data layer polygons to be under lakes / roads - depthTest: false makes picking not buggy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗺️
@bprusinowski is the author of the PR.
Fixes #1015.
This PR changes the way we index observations from indexing by label (or abbreviation) to indexing by value (for hierarchical dimensions, passed in a form of an additional property:
dimensionIri/__iri__
) or label (or abbreviation).Basically, we change
{ label_or_abbreviation: Observation }
into{ value_or_label_or_abbreviation: Observation }
.We needed to make this change to allow displaying values with the same labels, which is now a case with hierarchical dimensions (but in most places, we are able to distinguish them anyway, either by a color legend below a chart or visually on the map).
There are also smaller bug fixes / improvements included:
CircleLegend
labelsdataSet
prop toPublishedConfiguratorState
to fix loading hierarchies forColorLegend
How to test