Graph Bars#

This JSPWiki Style translates sets of values into horizontal colored bars. This feature is used to visualize the outcome of the search engine. But it is also usable inside ordinary wiki pages.

The nice thing about this implementation is that you can specify any color your like; there is no need for an external .gif.

Usage#

%%graphBars
* %%gBar 20 %% apples
* %%gBar 40 %% peers
* %%gBar 60 %% bananas
%%
becomes (when available on this wiki ;-)
  • 20 apples
  • 40 peers
  • 60 bananas

Additionally, you can specify the color of the bars as well as the maximum size of the bar (expressed in number of characters, default max size is 120).

%%graphBars-#e0e0e0-60
| apples  | %%gBar 20 %% 
| peers   | %%gBar 40 %% 
| bananas | %%gBar 60 %%
%%
becomes
apples 20
peers 40
bananas 60

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-3) was last changed on 15-Aug-2006 21:26 by Dirk Frederickx  
G’day (anonymous guest) My Prefs
This is the left menu footer
JSPWiki v2.8.3-svn-4