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
160
How to control the number of slice to be presented on the PieChart?
posted

Well,

Great. I need to know how to take control of the slice count on the pie chart. I want only 5 slices to be presented on my piechart (which means 4 slices from template and fifth one always be other category). How to achieve this one.?

And by default how many slices can PieChart have ?

Parents
No Data
Reply
  • 160
    Verified Answer
    posted

    Myself found an answer. PieChart will show all the number of slice presented in the data.

    To take the control,

                <ig:XamPieChart
                    ItemsSource="{Binding}"
                    LabelMemberPath="Label"
                    ValueMemberPath="Value"
                    OthersCategoryText="Other"
                    OthersCategoryThreshold="10"
                    OthersCategoryType="Number"/>

    CategoryType may be 'Number' or 'Percent', which means all the items having lesser number/percent value will be stored in other category.

Children
No Data