News combit Dev Blog

Delivered: Sorting Charts by Value

Posted: Monday, September 12, 2016 | 0 comment(s)
 
This is one of those "whaaaaat, that didn't work before?" features. No, it didn't. Until version 22, you were only able to sort bar charts with string labels ascending or descending. Alphabetically. Numerics and dates are treated differently, but for strings you only could get A-Z, Z-A or unordered, i.e. in the order the database supplies the data.

Take the following simple bar chart for an example:

Unordered chart in report designer

While it is nice to look at and the labels are neatly sorted alphabetically, it would be even more useful and easier to read if the labels were sorted by value. This would allow to see at a glance which are the three best performing product categories – and which category does worst. Using the new feature is straight forward – switch to the x-Axis and find the property for the coordinate sorting. It's value list has two new inhabitants: Result Ascending and Result Descending.

Set chart properties to show results descending

For this example, let's choose a sorting by value, descending. The resulting chart looks like this:

Ordered bar chart in combit reporting tool

Now compare its readability to the result before – it's a pleasure to work with now. At least if you're the kind of person that finds pleasure in working with charts at all, of course ;).

The same feature works for grouped bars as well, where we then order by the sum of all bars in one group. It's available for line and area charts just as for pie charts.

And while we were at it, we also made sure to support the "Limit To" functionality we've added to the crosstab a while ago. This enables easy Top-N reporting within charts. In the sample above, setting the property "Limit To" to "3" ...

Limit displayed bars in bar chart properties

... gives you a neat Top-3 chart for your sales:

Limited bar chart in List & Label report designer




Author: Jochen Bartlau
Head of Development List & Label

Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.


  

RSS
combit Development BlogRSS
What’s this blog for?
A place to share updates about the ongoing development of our products. General musings on the software industry included.
Archive
January 2021 (1)
December 2020 (2)
November 2020 (1)
October 2020 (2)
September 2020 (1)
August 2020 (2)
July 2020 (1)
June 2020 (1)
May 2020 (2)
April 2020 (2)
March 2020 (2)
February 2020 (1)
January 2020 (1)
December 2019 (1)
November 2019 (2)
October 2019 (2)
September 2019 (2)
August 2019 (2)
July 2019 (2)
June 2019 (2)
May 2019 (1)
April 2019 (0)
April 2019 (1)
March 2019 (1)
February 2019 (1)
January 2019 (1)
December 2018 (1)
November 2018 (2)
October 2018 (4)
September 2018 (4)
August 2018 (2)
July 2018 (2)
June 2018 (2)
May 2018 (1)
April 2018 (1)
March 2018 (1)
February 2018 (2)
January 2018 (1)
December 2017 (1)
November 2017 (2)
October 2017 (3)
September 2017 (3)
August 2017 (2)
July 2017 (2)
June 2017 (1)
May 2017 (2)
April 2017 (1)
March 2017 (1)
February 2017 (1)
January 2017 (2)
December 2016 (1)
November 2016 (1)
October 2016 (4)
September 2016 (5)
August 2016 (2)
July 2016 (2)
June 2016 (3)
May 2016 (2)
April 2016 (3)
March 2016 (3)
February 2016 (1)
January 2016 (2)
December 2015 (2)
November 2015 (1)
October 2015 (4)
September 2015 (5)
August 2015 (2)
July 2015 (2)
June 2015 (2)
May 2015 (1)
April 2015 (2)
March 2015 (1)
February 2015 (1)
January 2015 (1)
December 2014 (2)
November 2014 (1)
October 2014 (1)
September 2014 (2)
August 2014 (1)
July 2014 (2)
June 2014 (1)
May 2014 (2)
April 2014 (1)
March 2014 (2)
+1 800 256 3608 (toll-free North America only)