diff --git a/README.md b/README.md index 28b7f18..b83eaae 100644 --- a/README.md +++ b/README.md @@ -203,6 +203,11 @@ color_thresholds: - value: 4 color: "#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: