diff --git a/ui/sitemaps.md b/ui/sitemaps.md index 44423b07c..a5a28dcd9 100644 --- a/ui/sitemaps.md +++ b/ui/sitemaps.md @@ -608,6 +608,7 @@ Video url="https://demo.openhab.org/Hue.m4v" ```java Chart item= [label=""] [icon=] [staticIcon=] [refresh=xxxx] period=xxxx [service=""] [legend=true/false] [forceasitem=true/false] [yAxisDecimalPattern=xxxx] +[interpolation=xxxx] ``` Adds a time-series chart object for the display of logged data. @@ -636,6 +637,11 @@ Adds a time-series chart object for the display of logged data. It accepts [DecimalFormat](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/DecimalFormat.html). For example with `#.##` a number has to decimals. +- `interpolation` is used to change how the line is drawn between 2 datapoints. + By default, a horizontal line (step) will be drawn between 2 datapoints of `Switch` or `Contact` items. + All other item types will have a line (linear) connecting the datapoints. + With the `linear` or `step` value for this parameter, this default behaviour can be changed. + **Other options to look out for:** The Chart element type is a good way to present time series data quickly. For more sophisticated diagrams, openHAB supports the integration of outside sources like most logging and graphing solutions (e.g. [Grafana](https://grafana.org)).