This is 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 with event script "gauge_event.js"). The value is then used to update the Gauge. This sample has been developed based on a sample shown on the demos of RGraph.

Parameter for creation of chart

{rgraph type="Gauge" min="0" max="1" value="0" chart_name="chart" 
 event_script="media/plg_content_rgraph/js/gauge_event.js" scaleDecimals="1" }cvs{/rgraph} 

 

[No canvas support]>

 

Important: If you want to test this sample via copy/paste, ensure that you paste with option "paste as plain text" otherwise imbedded html-codes may invalidate your input.
go back...

Visitors

Today: 2
Yesterday: 31
This Week: 2
Last Week: 343
This Month: 1,602
Last Month: 2,555
This Year: 13,332
0245925
Germany 31.7% Germany
USA 22.3% USA
France 3.3% France
Italy 2.7% Italy
Indonesia 2.1% Indonesia
Poland 2.0% Poland
Netherlands 1.8% Netherlands
Spain 1.7% Spain

Total:

208

Countries

Weather

Weather in Ashburn

22nd July, 2024 - 1:39
Overcast Clouds
75°F 72°F min 78°F max
6:02 20:30
Humidity: 75 %
Wind: 2.0 mph North-East
Pressure: 1,017 hPa
Visibility: 32,808 ft
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.