Plugin Gauge

This wiki plugin displays a horizontal bar gauge of a value compared to a maximum.

Parameters

Display a horizontal bar gauge
Introduced in Tiki 1. Required parameters are in bold.
Go to the source code
Preferences required: wikiplugin_gauge

Parameters Accepted Values Description Default Since
(body of plugin) description
value float Current value to be represented by the gauge 1
perc (blank)
1
(blank)
Set to true (Yes) to display a percentage of the maximum. 1
showvalue (blank)
1
(blank)
Set to %1 (No) to hide the numeric value (shown by default). 1 3.0
height digits Bar height in pixels. 14 1
label text Label displayed on the left side of the gauge. 1
labelsize digits Label width, in pixels. 50 1
max digits Maximum possible value. Default: 100 100 1
size digits Bar width in pixels. 150 1
bgcolor Background color of the gauge. Use HTML color codes or names. #0000FF 1
color Main color of the gauge. Use HTML color codes or names. #FF0000 1

Example

This code:

Copy to clipboard
{GAUGE(value="15000" max="16443" label="Satisfied users" perc="true" labelsize="250" height="20" color="green" bgcolor="#EEEEEE")}__User satisfaction survey results__{GAUGE}


Would produce:

Satisfied users 
  
 91.22% 
User satisfaction survey results

Click to expand
Click to expand