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
640
XamPieChart Others Category Value
posted

How can I retrieve the numerical value and the percentage value for "Other" if I was using the OthersCategoryThreshold functionality? I need it for the tooltip and the ItemLegend. In the image below, it shows how I've put the domain names and the range values next to it both for the legend and the tooltip using the included sample code.

 

 <ig:ItemLegend Name="SamplesByRacePieChartLegend" VerticalAlignment="Top" HorizontalAlignment="Right"/>
<ig:XamPieChart Name="RacePieChart" DataContext="{Binding SamplesByRace, Converter={StaticResource ChartDataValueConverter} ItemsSource="{Binding}" LabelMemberPath="RaceNameWithCommaFormattedCount" LabelsPosition="Center" ValueMemberPath="Count" Legend="{Binding ElementName=SamplesByRacePieChartLegend}" 
OthersCategoryThreshold="5"
OthersCategoryType="Percent"
OthersCategoryText="Other">
<ig:XamPieChart.ToolTip>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Item.RaceName}" FontWeight="Bold" />
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Item.CommaFormattedCount}" Foreground="Black"/>
</StackPanel></StackPanel>
</ig:XamPieChart.ToolTip>
</ig:XamPieChart>