Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | guiutils |
include "barchart.g"
barchart tools are used to record name and value pairs, and to optionally display them in barchart form in a GUI.
If enough colors are available, the GUI display will use green bars if the size is below a specifiable ``large'' value, and red if the value is above the large value.
If there are not enough colors, the bars are always drawn as outlines in black and white.
- bc := barchart('My Title', large=30); - bc.chart('small', 10) - bc.chart('large', 50) # Red, because it is >30 - bc.chart('small', 20) # Update with new value - bc.large(15) # Turn small to Red by changing threshold