How to add multiple legend items in scroll viewer in UWP Chart?
This article describes how to show a ScrollBar when the chart has a greater number of Legend items in UWP Chart. When many series are added to the chart, some legend items may be hidden from view. The chart allows you to place the legend items inside a ScrollViewer to view all legend items by scrolling.
To display multiple LegendItems with scrolling capability, define a custom ControlTemplate for the ChartLegend. Place a ScrollViewer inside the template and set its properties to enable horizontal and vertical scrolling as needed.
<chart:SfChart.Legend>
<chart:ChartLegend Height="50" DockPosition="Top">
<chart:ChartLegend.Template>
<!--Customize the Legend Template to show scroll bar-->
<ControlTemplate>
<ScrollViewer Margin="1" VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Auto">
<ItemsPresenter></ItemsPresenter>
</ScrollViewer>
</ControlTemplate>
</chart:ChartLegend.Template>
</chart:ChartLegend>
</chart:SfChart.Legend>Output

Conclusion
I hope you enjoyed learning about how to add multiple legend items in scroll viewer in UWP Chart.
You can refer to our UWP Chart’s feature tour page to know about its other groundbreaking feature representations. You can also explore our UWP Chart documentation to understand how to present and manipulate data.
For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our UWP Charts and other UWP components.
If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!