3.2.8 Graph - Pie Chart: Legend
The next record in this example, Legend, specifies properties of the legend, including the location on the display and its overall size.
Size |
Structure |
Value |
---|---|---|
0014 |
Legend - Legend |
|
0004 |
ULONG - x |
0x00000C5D |
0004 |
ULONG - y |
0x00000553 |
0004 |
ULONG - dx |
0x00000309 |
0004 |
ULONG - dy |
0x000004E5 |
0001 |
BYTE - unused |
0x03 |
0001 |
BYTE - wSpace |
0x01 |
1 bit |
WORD - fAutoPosition |
0x1 |
1 bit |
WORD - reserved1 |
0x1 |
1 bit |
WORD - fAutoPosX |
0x1 |
1 bit |
WORD - fAutoPosY |
0x1 |
1 bit |
WORD - fVert |
0x1 |
1 bit |
WORD - fWasDataTable |
0x0 |
10 bits |
WORD - reserved2 |
0x000 |
Figure 43: Structure of the Legend record
Fields x, y, dx, and dy are ignored in this record because a Pos record follows this record.
wSpace: 0x01 is required in this field and specifies that the space between legend entries is set to 1, which represents 40 twips between legend entries.
fAutoPosition: 0x1 specifies that the legend is automatically positioned.
fAutoPosX: 0x1 is required in this field because fAutoPosition is set to 1 and specifies that the x-positioning of the legend is automatic.
fAutoPosY: 0x1 is required in this field because fAutoPosition is set to 1 and specifies that the y-positioning of the legend is automatic.
fVert: 0x1 specifies that the layout of the legend entries contains a single column of entries.
fWasDataTable: 0x0 specifies that the chart does not show the legend in the data table.