ASP.NET Core MVC Controls | ComponentOne
Working with Controls / Sunburst Chart / Work with Sunburst / Legend
In This Topic
    Legend
    In This Topic

    You can specify the position where you want to display the legend using the Legend property of the Sunburst chart. Legend helps in displaying the series of a chart with a predefined symbol and name of the series.

    The image below shows how the Sunburst chart appears after you set the Chart.Position property to Bottom.

    The following code example demonstrates how to set the Position property. This example uses the sample created in the Quick Start topic.

    Razor
    Copy Code
    <c1-sunburst binding-name="Year, Quarter, Month" binding="Value" legend-position="Bottom">
    <c1-items-source source-collection="Model"></c1-items-source>
    </c1-sunburst>