[Show/Hide Right Column]

Displays a horizontal bar gauge
Print
Tags: plugin

Plugin Gauge

This Wiki Plugin displays a horizontal bar gauge of a value compared to a maximum.

Usage and Parameters

To use this plugin in a wiki page, use the syntax:

Syntax for the GAUGE plugin
{GAUGE(value=> , max=> , label=>, labelsize=> , perc=>true|false , showvalue=>true|false , color=> , bgcolor=> , size=> , height=> )}description{GAUGE}

Parameter Accepted values Default Effect Required? Since
value positive decimal number to two decimal places none The value the gauge will reflect in comparison to the maximum y
max positive decimal number to two decimal places 100 The maximum possible value reflected in the gauge n
label formatted text none Label shown on the left side of the gauge n
labelsize positive integers 50 Sets the width in pixels of the label n
perc true or false false Shows the percent resulting from dividing the value by the maximum onthe right side of the gauge n
showvalue true or false true Shows the value instead of the percentage on the right side of the gauge n
color HTML color name or code #FF0000 Sets the color of the part of the bar gauge represented by the value n
bgcolor HTML color name or code #0000FF The color of the part of the graph representing the difference between the value and the maximum n
size positive integers 150 Sets the horizontal length of the bar gauge in pixels n
height positive integers 14 Sets the vertical width of the bar gauge in pixels n
body (part between the GAUGE tags) text string none Description that appears beneath the gauge n

Example

This code,

Plugin GAUGE example
{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:

 
  
 15,000.00 
User satisfaction survey results




Contributors to this page: lindon2331 points  and Scot Wilcoxon680 points  .
Page last modified on Saturday 03 July, 2010 22:28:06 UTC by lindon2331 points .

Find by Page Name

Exact match

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki documentation and should correspond to development keywords (bug reports and feature requests):