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
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
Georgi,
Thanks for the response.
The issue that I'm having really revolves around the fact that the percentages portrayed on the pie chart aren't reflective of my true data. I was previously using a modified version based on LINQ of my data (5 instead of 8) to show in the pie chart, but by doing so, the percentages of "time used" in my data gets distorted to 10% instead of 8.7%, and so on.
I will try to research the Point collection on the UltraChart. Maybe this will fit what I need.