Hi I would like to select between “hour”, “Day” and “week” for my charting like it is in the demo of OH1.7 . I copy code from the demo sitemap however I don’t get the the buttons like it is in this demo.
This is what I get with the same code why will it be? It also show all the charts at the same time. I user the basic UI in OH2. I also get the same results in the classic UI.
Are you sure that you correctly set up the item and the sitemap? The Item for chart period has to be of type Number. In the sitemap, the item needs a mapping: Switch item=chart_period mappings=[1=Hour,2=Day,3=Week]
and the chart definition in the sitemap needs a part visibility=[chart_period==[1|2|3]] /1,2 or 3
Yes, it’s possible that the refresh doesn’t work as expected, I think, there is an Issue at github… I’m not sure if it is fixed already, but afaik it should be at least in OH1.8.3