Skip to main content

Legend

The Legend can be used to help end-users identify different chart elements such as series and data points. The Legend class represents a legend.

Each legend entry can be displayed using its corresponding legend marker and text identifying the entry.

Legend

The legend contains all chart series. To hide a series, set its ShowInLegend property to false.

The code snippet below illustrates how to customize the legend.

<Charts:PieChart>
    <Charts:PieChart.Legend>
        <Charts:Legend BorderThickness="0"
                    FontSize="12"
                    Margin="0,-10,0,-10"/>
    </Charts:PieChart.Legend>
<Charts:PieChart>