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
1015
Limiting the number of items that appear in a pie chart with a bound data source set
posted

Hello all,

I'm using a basic Pie Chart version of the UltraChart in an application I'm developing that takes summary data, and then shows it to the user visually via the chart. The data source that I'm using contains 8 different items, but I'd like to limit what gets charted to only the top five. Is this possible? If so, can you provide code on how to achieve this?

Thanks,

Melissa

Parents
No Data
Reply
  • 53790
    Verified Answer
    posted

    Hello Melissa,

    I`m not familiar with your scenario, but maybe you have two different options to acheive desired behaviour.

    The first one is, if you are using series. In that case, you could include in your Points collection only desired items from your datasource.

    The second approach (if you are working wihtout series), you should fillter your DataSource (for example using a Linq), you just fill another DataSource with desired items from your original DataSource.

    Please note that our UltraChart just represent the data from your DataSource, so you should take a care about which data to be drawn in the chart.

    Let me know if you have any questions.

    Regards

Children