-
Notifications
You must be signed in to change notification settings - Fork 10
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
Categorical color mapping #338
Conversation
@@ -39,7 +39,7 @@ const colorBarItemStyle = (theme: Theme) => ({ | |||
const useItemStyles = makeStyles((theme: Theme) => ({ |
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.
makeStyles is also imported from @mui/styles which is now legacy, so may be we can get rid of makeStlyes and adapt styled or sx
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.
Yes, of course. I will adapt all the components. I have not yet started this.
Users can now select the data normalisation function to be applied before the actual color mapping takes place. Three functions are available:
Lin
: linear mapping of data values betweenmin
andmax
to colors.Log
: logarithmic mapping of data values betweenvmin
andvmax
to colors.Cat
: direct mapping of categorical data values into colors.This PR requires xcube server as of xcube-dev/xcube#977.