Skip to main content

How to: Add a Legend Title to a Legend

To display the legend title, assign a newly created LegendTitle object to the LegendBase.Title property. Then, specify the title’s TitleBase.Content property.

<dxc:Legend>
    <dxc:Legend.Title>
        <dxc:LegendTitle Content="Area of Countries"/>
    </dxc:Legend.Title>
</dxc:Legend>