Skip to content

Commit

Permalink
Update README.md: thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
ildar170975 authored Jan 19, 2024
1 parent 210fb4c commit 33f6060
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ color_thresholds:
- value: 4
color: "#0000ff"
```
i.e. if value is between "0" (including this value) & "1.33333" - color is "#ff0000",
between "1.33333" (including this value) & "2.666667" - color is "#ffff00",
between "2.666667" (including this value) & "4" - color is "#00ff00",
equal to or more than "4" - color is "#0000ff".

As a shorthand, you can just use a color string for the stops that you want interpolated:

Expand Down

0 comments on commit 33f6060

Please sign in to comment.