Gauge Chart Application

Sample of an interactive Chart Application

This chart shows a measurement for downloads. I have added two buttons to trigger the measurement by calling a small javascript which issues a download request, calculates the timings and posts the result. The event script (see parameter event_script), which adds an events listener, catches the post and updates the meter chart.

Plugin Parameter for creation of chart:

{rgraph type="Gauge" max="100" value="0" labelsValue="true" titleTop="Download Speed" titleTopSubtitle="megabits per second" width="450" height="350" radius="150" chart_name="chart" event_script="media/plg_content_rgraph/js/meter_event.js" titleTopSize="12" titleTopPos="0.35" labelsValueSize="10" needleColors="rgba(0,0,255,0.65)" labelsValueDecimals="1" labelsValueUnitsPost=" Mbs"  colorsRanges="0,16,rgba(255,0,0,0.6)|16,40,yellow|40,100,rgba(0,255,0,0.8)" textAccessible="0" marginLeft="5" labelsValueDecimals="1" scaleDecimals="1" number_format="c" debug="1"}chart{/rgraph}
[No canvas support]>

 

Installation of this Sample

Insert Script-tag for javascript measurement program into your Joomla Article:
<script src='media/plg_content_rgraph/js/demo.js' type='text/javascript' ></script>
Having done this, code rgraph plugin-tags and insert html-tags to define buttons for controlling application.
<button type="button" onclick="measure_speed('php-apps/RGraph/images');" >Start Messung</button>
<button type="button" onclick="postMessage(0, '*');">Reset</button>
The measurement program uses 5MB sized Image "31120037-5mb.jpg" (you may have a look at it and download it). Directory for image needs to be added as parameter for the called measurement program in onclick-parameter of first button.

 

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: 48
This Week: 84
Last Week: 620
This Month: 1,780
Last Month: 1,635
Total: 220,576
0220576
Germany 29.7% Germany
USA 24.6% USA
France 3.1% France
Italy 2.7% Italy
Indonesia 2.2% Indonesia
Poland 2.0% Poland
Spain 1.8% Spain
India 1.8% India
Netherlands 1.7% Netherlands

Total:

207

Countries

Weather

Weather in Ashburn

22nd March, 2023 - 1:36
Broken Clouds
11°C 8°C min 14°C max
12:12 0:22
Humidity: 33 %
Wind: 4.1 km/h SouthEast
Pressure: 1,028 hPa
Visibility: 10,000m
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.