Set theme for OH3 chart

  • Platform information:
    • openHAB version: 3.0.1
  • Issue of the topic: How can I set the theme for an OH3 chart?
    Apache Echarts defines some default themes.
    How can I set those themes in OH3 configuration?

Your help would be very much appreciated.

The theme parameter is not configurable at the moment, but can be added easily - did a quick spike and having chart:

applying theme:

  label: Test
  chartType: day
      - "#4ea397"
      - "#22c3aa"
      - "#7bd9a5"
      - "#d0648a"
      - "#f58db2"
      - "#f2b3c9"
        width: 2
      symbolSize: 8
      symbol: triangle

renders chart as below

So for exposing the theme parameter a small change would be required in Main UI codebase. Out of curiosity - is there any parameter you cannot set without theme?

Honestly I am just discovering echarts. I figured that themes would be handy to change style (just to improve visibility of overlapping lines). Whether the same effect could be otherwise, I don’t know.