Hi Syaiful,
Thanks for contacting Syncfusion Support.
We have analyzed the reported problem and it can be avoided by applying Template for chart legend and chart legend panel as like the below code snippet,
<chart:SfChart.Legend>
<chart:ChartLegend >
<chart:ChartLegend.ItemsPanel>
<ItemsPanelTemplate>
<ItemsWrapGrid Orientation="Horizontal"/>
</ItemsPanelTemplate>
</chart:ChartLegend.ItemsPanel>
<chart:ChartLegend.Template>
<ControlTemplate>
<ScrollViewer Margin="10" Height="100"
HorizontalScrollMode="Enabled"
HorizontalScrollBarVisibility="Visible"
VerticalScrollBarVisibility="Visible"
VerticalScrollMode="Enabled">
<ItemsPresenter/>
</ScrollViewer>
</ControlTemplate>
</chart:ChartLegend.Template>
</chart:ChartLegend>
</chart:SfChart.Legend> |
We have prepared a demo sample based on your requirement and it can be downloaded from below link,
Please refer our UG documentation link to know more about the chart legend template,
Regards,
Devi