This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

chartist to display nice pie...
#44
This turned a bit off topic, but... I can use this:

Code:
localbus.listen('object', '35/0/6', (value) => {
  if (value)
    {
      document.getElementById("p1").value = value;
    }
})

and have this in a html-widget:

Code:
<progress id="p1" value="0" max="100"></progress>

and it works - after the first update of 35/0/6. Since the JS is run before the page is completely rendered, I have no way to have this value from start.

I'm sure there is a workaround I just don't understand..?
Reply


Messages In This Thread
chartist to display nice pie... - by domotiqa - 05.01.2022, 08:56
RE: chartist to display nice pie... - by jmir - 14.02.2022, 11:32
RE: chartist to display nice pie... - by jmir - 14.02.2022, 13:34
RE: chartist to display nice pie... - by jmir - 15.02.2022, 11:15
RE: chartist to display nice pie... - by Acla - 12.06.2023, 05:05
RE: chartist to display nice pie... - by JRP - 08.09.2022, 16:18
RE: chartist to display nice pie... - by Acla - 12.06.2023, 15:44
RE: chartist to display nice pie... - by jmir - 25.03.2024, 14:49
RE: chartist to display nice pie... - by stianj - 03.11.2025, 13:28

Forum Jump: