This is a basic demo of using Web Workers (which are child threads) to generate a random value which is posted back to the main thread (this page). The value is then used to update the Gauge. To make a useful example you could use the child thread in conjunction with Web Sockets to retrieve load values from your server(s). Also, to retrieve data from your server you may find it easier and less involved to use AJAX.
See also:
This goes in the documents header:<script src="RGraph.common.core.js"></script> <script src="RGraph.common.effects.js"></script> <script src="RGraph.gauge.js"></script>Put this where you want the chart to show up:
<canvas id="cvs" width="300" height="300"> [No canvas support] </canvas>This is the code that generates the chart: