Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
Color repeatation after 5 legends
posted

Hi,

 

I am using InfragisticsWPF4.Controls.Charts.XamDataChart.v12.2 version 12.2.20122.1000.

When i am implementing the pir chart, the color repeatation occurs after 5 or more legends are there.

Can you let me know how can this bs handled or this is a bug in infragistics pie chart.

 

<

igCharts:ItemLegend Grid.Row="1" Grid.Column="1" Name="lgndComapany" Cursor="Hand" VerticalAlignment="Center" Margin="50,0,0,0"

                                               

Width="Auto" HorizontalAlignment="Right" LegendItemMouseLeftButtonUp="LgndComapany_OnLegendItemMouseLeftButtonUp">

                               

</igCharts:ItemLegend>

                               

<igCharts:XamPieChart Grid.Row="1" Grid.Column="0" ItemsSource="{Binding OwnershipCollection}"

LabelMemberPath="CompanyName" OthersCategoryThreshold="0" LabelsPosition="BestFit"

                                                

ToolTip="{}{CompanyName}" Legend="{Binding ElementName=lgndComapany}"

                                                

Name="pieChrtOwnership" ValueMemberPath="InterestPercent" Height="350" AllowSliceExplosion="True">

                                   

<igCharts:XamPieChart.LabelTemplate>

                                       

<DataTemplate>

                                           

<TextBlock Text="{Binding PercentValue, StringFormat=n}" />

                                       

</DataTemplate>

                                   

</igCharts:XamPieChart.LabelTemplate>

                               

</igCharts:XamPieChart>

 

Regards,

Rajiv