Hi,
I have a custom transformer setup which provides a big array of objects. On the X axis of my bar chart, I want to display one of the properties (there could be thousands of these). On the Y axis, I want to display the number of occurrences. I want to group by another property on the object (there could be three of four of these).
Please see a screenshot of the chart as it stands below.
What I want to do, is sort the results by their most occurring to the least, and then display only the top 10 results on the graph. What's the best way to do this please?
Thanks in advance