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

 

Parents
  • 138253
    Offline posted

    Hello Rajiv,

     

    Thank you for your post. I have been looking into it and I can say that this behavior occurs by design and if you want to have more colors, you should define a BrushCollection for the XamPieChart. Here you can see how to do so :

     

    http://ko.infragistics.com/community/forums/p/58781/298836.aspx

     

    Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.

Reply Children