| DrawLegend |
| |
This function will generate legend for a graph |
| |
| Library |
 |
wh::graphics/graphs.whlib |
| |
| Syntax |
 |
PUBLIC BLOB FUNCTION DrawLegend (RECORD ARRAY graphdata) |
| |
| Parameters |
 |
| graphdata |
 |
RECORD ARRAY the data to generate the graph with |
| |
The record contains the following cells:
| value |
 |
FLOAT The value for this element |
 |
| color |
 |
optional RGB color for this element |
 |
|
 |
|
| |
| Returns |
 |
Blob containing the legend as a PNG image |
| |