User Tools

Site Tools


dashboards

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dashboards [2022/06/03 10:30] – [JavaScript for dashboard] emozolyakdashboards [2023/06/05 08:43] (current) – [JavaScript for dashboard] emozolyak
Line 505: Line 505:
 4. Drawing custom XY graph. 4. Drawing custom XY graph.
  
-5. Other custom user interaction which can not be done with standard tools.+5. Other custom user interaction which can not be done with standard tools. E.g. with the dashboards made on templates, you can not make subsitutions in the descendants for some elements, like links to other dashboards. However, you may override the link property (which may lead to target page) of the button depending on the dashboard where this button is. 
 + 
 +6. Downloading graph data with full data set. The graphs in WebHMI can be exported into csv/xls/html files, however, the output file will contain only the data corresponding current graph view scale (e.g. if your viewing area is 1024 px wide, only these data pixels will be downloaded). If you need to have full data export tool in the WebHMI project, you can make it with the JS for dashboards
  
 etc. etc.
 +== Object properties control example ==
 +
 +<code javascript>
 +// Image rotation example 
 +var IMAGE_ID = 2;
 +var currentAngle = 0;
 + 
 +function setAngle() {
 +    setObjProperty(IMAGE_ID, {angle:currentAngle}); 
 +    currentAngle = currentAngle + 10;
 +    if (currentAngle >= 360) {
 + currentAngle = 0}
 +    }
 +}
 +
 +setInterval(setAngle, 40); // will be called every 40 ms 
  
 +</code>
  
  
  
  
dashboards.1654252251.txt.gz · Last modified: 2022/06/03 10:30 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki