<key align="right"/>
to the graph,
and the key will be created with the name of each series (for Axes graphs) or slice (for Pie
graphs). Alternatively the keyitem tag may be used to list each
series individually.
<axesgraph width="300" height="300"> <lineseries name="First data set">...</lineseries> <lineseries name="Second data set">...</lineseries> <lineseries name="Third data set">...</lineseries> <key align="right" /> </axesgraph>
<axesgraph width="300" height="300"> <lineseries name="First data set">...</lineseries> <lineseries name="Second data set">...</lineseries> <lineseries name="Not listed in key">...</lineseries> <key x="0.8" y="0.1"> <keyitem series="First data set" /> <keyitem series="Second data set" /> </key> </axesgraph>
x | Real | optional | XML / Tag Library |
<key x="0.2" y="0.8" />
y | Real | optional | XML / Tag Library |
align | left | right | top | bottom | optional | XML / Tag Library |
margin | Integer | optional | XML / Tag Library |
padding | Integer[1..4] | optional | XML / Tag Library |
paddingleft | Integer | optional | XML / Tag Library |
paddingright | Integer | optional | XML / Tag Library |
paddingtop | Integer | optional | XML / Tag Library |
paddingbottom | Integer | optional | XML / Tag Library |
boxratio | Real > 0 | optional | XML / Tag Library |
verticaladvance | Integer > 0 | optional | XML / Tag Library |
horizontaladvance | Integer > 0 | optional | XML / Tag Library |
maxwidth | Real > 0 | optional | XML / Tag Library |
<piegraph width="300" height="400"> ... <key maxwidth="200" align="bottom" /> </piegraph>
textcolor | Paint | optional | XML / Tag Library |
color | Color | optional | XML / Tag Library |
bordercolor | Color | optional | XML / Tag Library |
linethickness | Real > 0 | optional | XML / Tag Library |
dash | Real[] | optional | XML / Tag Library |
dash="5,5"
to create a regular dash pattern,
or dash="6,2,2,2"
to create a dash/dot type pattern.
textcolor | Paint | optional | XML / Tag Library |
fontsize | Real > 0 | optional | XML / Tag Library |
font | String | optional | XML / Tag Library |
font="12pt bold Times"
is
the same as fontfamily="Times" fontweight="bold" fontsize="12pt"
.
fontfamily | String | optional | XML / Tag Library |
<bfg:axesgraph> <label fontfamily="serif">My Label</label> ... </bfg:axesgraph>
<bfg:font name="myfont" src="http://localhost/myfont.ttf" /> <bfg:axesgraph> <label fontfamily="myfont">My Label</label> ... </bfg:axesgraph>
fontweight | normal | bold | optional | XML / Tag Library |
fontstyle | normal | italic | optional | XML / Tag Library |