-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] color: simplify color scale usage
This commit simplifies the use of color scales in the conditional format plugin and export the color scales to an helper. Now we have a simple `getColorScale` helper, that take as argument a number of value/color pairs (the thresholds) and return a function that computes a color based on a value and the provided value/color pairs. All the complexity of the color scale computation is now hidden in the helper, which simplify the use of color scale a lot and allows us to use them in other places. Task: 3265268 Part-of: #5096 Signed-off-by: Lucas Lefèvre (lul) <[email protected]>
- Loading branch information
1 parent
a6bb4c9
commit 1fca760
Showing
3 changed files
with
103 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters