-
Notifications
You must be signed in to change notification settings - Fork 8
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: categorical legend #1462
base: main
Are you sure you want to change the base?
fix: categorical legend #1462
Conversation
✅ Deploy Preview for veda-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
c9bec92
to
a08f4c1
Compare
I am curious about cases where
|
@anayeaye
But if the mdx configuration and render extension are both empty, the dashboard will make requests without any sourceParams. Re: soil texture data - I think this is the same with geoglam data - it should have thrown an error since it doesn't have a valid sourceparams (at least for the dashboard) - but we have a bug that we are not throwing an error with some specific combination- user configured source param is not valid + render param exists + render param is not valid. This is a bug, but factoring all these cases, there doesn't seem to be any definite rule that we can tell whether the source is valid or not. We can skip any validation process if that reflects the actual rendering of the dataset more correctly? |
Not directly related but kind of related - do all the datasetes have |
a08f4c1
to
3623701
Compare
Based on the discussion with @anayeaye @smohiudd and @dzole0311 I made several more changes
@dzole0311 I will appreciate if you can review this one more time 🙇 |
I think it could be problematic to mix item asset keys with the renders namespace visualization object keys because renders could include multiple assets in source parameters. Can we make a 1:1 mapping of In this case the logic might be
|
Related Ticket: #1456
Description of Changes
Categorical legend often doesn't have a colormap name but custom colormap values. This PR makes colormap&&rescale combination valid sourceParam. I think I would still like to run it with back-end team re: what makes sourceParams valid.
Notes & Questions About Changes
We need to consolidate where we are subbing colormap and rescale value. The current dataflow seems to be scattered, making it difficult to pin down where the source of the data is. IMO, it should happen while reconciling the render data.
Also it is interesting... that GeoGLAM dataset has been displayed just fine - which is another categorical dataset with colormap value. It just didn't get caught in any of our error Logic - which probably means that we can do better 😬
Validation / Testing
Check campfire nlcd data from the preview of NASA-IMPACT/veda-config#669
direct url: https://deploy-preview-669--visex.netlify.app/exploration?datasets=%5B%7B%22id%22%3A%22campfire-nlcd%22%2C%22settings%22%3A%7B%22isVisible%22%3Atrue%2C%22opacity%22%3A100%2C%22analysisMetrics%22%3A%5B%7B%22id%22%3A%22mean%22%2C%22label%22%3A%22Average%22%2C%22chartLabel%22%3A%22Average%22%2C%22themeColor%22%3A%22infographicB%22%7D%2C%7B%22id%22%3A%22std%22%2C%22label%22%3A%22St+Deviation%22%2C%22chartLabel%22%3A%22St+Deviation%22%2C%22themeColor%22%3A%22infographicD%22%7D%5D%7D%7D%5D&taxonomy=%7B%7D&search=&date=2019-01-01T05%3A00%3A00.000Z