Skip to content

Commit 45e62b1

Browse files
authored
sitemap_interpolation (#2463)
Signed-off-by: Mark Herwege <[email protected]>
1 parent d758e26 commit 45e62b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ui/sitemaps.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,7 @@ Video url="https://demo.openhab.org/Hue.m4v"
608608
```java
609609
Chart item=<itemname> [label="<labelname>"] [icon=<iconref>] [staticIcon=<iconref>] [refresh=xxxx]
610610
period=xxxx [service="<service>"] [legend=true/false] [forceasitem=true/false] [yAxisDecimalPattern=xxxx]
611+
[interpolation=xxxx]
611612
```
612613

613614
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.
636637
It accepts [DecimalFormat](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/DecimalFormat.html).
637638
For example with `#.##` a number has to decimals.
638639

640+
- `interpolation` is used to change how the line is drawn between 2 datapoints.
641+
By default, a horizontal line (step) will be drawn between 2 datapoints of `Switch` or `Contact` items.
642+
All other item types will have a line (linear) connecting the datapoints.
643+
With the `linear` or `step` value for this parameter, this default behaviour can be changed.
644+
639645
**Other options to look out for:**
640646
The Chart element type is a good way to present time series data quickly.
641647
For more sophisticated diagrams, openHAB supports the integration of outside sources like most logging and graphing solutions (e.g. [Grafana](https://grafana.org)).

0 commit comments

Comments
 (0)