Open jlikonen opened 4 months ago
Can you please update your reproduce steps with a widget code example that I can use without needing to have any of your Items?
@florian-h05, basically you can use my code given in the first code box. When you configure the widget you need to choose your own Item. Only thing you need to change are the min and max values given in the 2nd code box for Visualmap. So you just need to change the following two lines to your liking:
max: =Number.parseFloat(items.Ouflex_AXL_Reg395.state) min: =Number.parseFloat(items.Ouflex_AXL_Reg395.state)
The problem
I have a chart widget which plots the hourly Entso spot prices and a markLine for a price limit. The markLine indicates the price limit for switching on our ground source heat pump, i.e. when the electricity price is below this limit the heat pump is on and when the price is higher than the price limit then the pump is off.
The problem now is that if I refresh the page then I get an empty plot.
Expected behavior
When the page with the chart is refreshed then the chart should also be refreshed.
Steps to reproduce
The code of my widget is:
I then updated the visualMap part by adding line “show: false” so the code for visualMap part is:
With the "show:false" line the widget works OK.
I made a test page which has this widget with and without line "show: false". The screencopy is shown below:
When I refresh the page then the plot on the right hand side is empty:
The problem appears with Firefox, MS Edge and Chrome.
Your environment
Browser console
When I open up my test page the console has no errors. When I refresh the page then the Chrome console shows following errors:
Browser network traffic
Additional information
Link to the discussion on OH community.