Widget Chart

To answer my own question in the case someone is looking für the same thing.
It is possible to change the max and the min values of the temperature-axis by adding a single parameter into the yAxis-Block of the widget.

Change

        yAxis:
          - component: oh-value-axis
            config:
              gridIndex: 0

to

        yAxis:
          - component: oh-value-axis
            config:
              scale: true
              gridIndex: 0

@B0rner & @Hamlet
Thanks for this update, I would be interested to put a defined scale for the temperature.
My purpose is to have a chart for the outdoor temperature giving the lowest expected (-5 °C) and the highest expected (+35 °C). With such a fixed scale I can see from the graph the current temperature niveau and also the variation within this niveau.

Autoscaling will always show a variance even it is only in a smal range …

Is there a way ti give a fixed scale?

Do you want this:

just add

              scale: true
              min: -5
              max: 35

to the end of the chart-widget…

@hmerk,

I found that out as well but when its added to the widget then it is the same for all charts created with that widget …

But I know that you already found a way to make it customizable :wink:

I tried to install this add-on through the CLI addons install marketplace:137934 but my logs show:

Widget from marketplace is invalid: Couldn’t find the widget in the add-on entry. The starting code fence may not be marked as ```yaml

Is OpenHab 4.3 supported or does this only work for Openhab 3?