<record id="0x1015" name="Legend" package="org.apache.poi.hssf.record">
    <suffix>Record</suffix>
    <extends>Record</extends>
    <description>The legend record specifies the location of legend on a chart and it's overall size.</description>
    <author>Glen Stampoultzis (glens at apache.org)</author>
    <fields>
        <field type="int" size="4" name="x position"/>
        <field type="int" size="4" name="y position"/>
        <field type="int" size="4" name="x size"/>
        <field type="int" size="4" name="y size"/>
        <field type="int" size="1" name="type">
            <const name="bottom" value="0"/>
            <const name="corner" value="1"/>?
            <const name="top" value="2"/>
            <const name="right" value="3"/>
            <const name="left" value="4"/>
            <const name="not docked" value="7"/>
        </field>
        <field type="int" size="1" name="spacing">
            <const name="close" value="0"/>
            <const name="medium" value="1"/>
            <const name="open" value="2"/>
        </field>
        <field type="int" size="2" name="options">
            <bit number="0" name="auto position" description="set to true if legend is docked"/>
            <bit number="1" name="auto series" description="automatic series distribution"/>
            <bit number="2" name="auto pos x" description="x positioning is done automatically"/>
            <bit number="3" name="auto pos y" description="y positioning is done automatically"/>
            <bit number="4" name="vert" description="if true legend is vertical (otherwise it's horizonal)"/>
            <bit number="5" name="contains data table" description="true if the chart contains the data table"/>
        </field>
    </fields>
</record>
