Creating Wrap Around Text Blocks for Large Number of Series
To create wrap around text blocks for large number of series use the following XAML and then use the Visual Basic or C# code:
•XAML
<c1chart:C1Chart x:Name="chart">
<c1chart:C1ChartLegend Position="Top">
<c1chart:C1ChartLegend.ItemsPanel>
<ItemsPanelTemplate>
<c1:C1WrapPanel ItemHeight="20" ItemWidth="80"/>
</ItemsPanelTemplate>
</c1chart:C1ChartLegend.ItemsPanel>
</c1chart:C1ChartLegend>
</c1chart:C1Chart>
For i As Integer = 0 To 19
chart.Data.Children.Add(New DataSeries())
Next
•C#
for (int i = 0; i < 20; i++)
chart.Data.Children.Add(new DataSeries() { Label = "s " + i.ToString() });