Fullscreen
[Show/Hide Right Column]

Display a horizontal bar gauge

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:


Satisfied users 
  
 91.22% 
User satisfaction survey results








Contributors to this page: lindon5651 points  and Scot Wilcoxon683 points  .
Page last modified on Tuesday 10 January, 2012 03:47:10 UTC by lindon5651 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki