From 33f6060dcb6b345e85f6af22003df6e7603be153 Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Fri, 19 Jan 2024 03:19:47 +0300 Subject: [PATCH 1/2] Update README.md: thresholds --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 11ea453c..2738b3a9 100755 --- a/README.md +++ b/README.md @@ -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: From 8dcb803f9f6ca81a1b4ed9c90eefd002cd29c93e Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Sat, 20 Jan 2024 07:11:48 +0300 Subject: [PATCH 2/2] Update README.md Co-authored-by: akloeckner --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2738b3a9..08f58956 100755 --- a/README.md +++ b/README.md @@ -202,10 +202,11 @@ 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". +The example above will result in the following colors of the graph: if value is +* between `0` (including this value) and `1.33333`, the color is `#ff0000`, +* between `1.33333` (including this value) and `2.666667`, the color is `#ffff00`, +* between `2.666667` (including this value) and `4`, the color is `#00ff00`, +* equal to or more than `4`, the color is `#0000ff`. As a shorthand, you can just use a color string for the stops that you want interpolated: