Legend in .NET MAUI Sunburst Chart

18 Nov 20181 minute to read

Enable a Legend

The legend provides information about the data points displayed in the sunburst chart. The Legend property of the chart enables the SunburstLegend.

<sunburst:SfSunburstChart>
    . . .
    <sunburst:SfSunburstChart.Legend>
        <sunburst:SunburstLegend/>
    </sunburst:SfSunburstChart.Legend>
</sunburst:SfSunburstChart>
SfSunburstChart sunburst = new SfSunburstChart();
. . .
sunburst.Legend = new SunburstLegend();
this.Content = sunburst;