Focal Point
[SOLVED] Can I sort the legend?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5981098892

September 10, 2008, 10:06 AM
Laurie
[SOLVED] Can I sort the legend?
I can't find a method that allows me to sort the legend. I can sort the pie graph with setPieSorting(3) but there doesn't seem to be anything for sorting the legend so it coincides with the data. Is this possible?

This message has been edited. Last edited by: Kerry,
September 12, 2008, 03:22 AM
GamP
Laurie,

The legend order is indeed the order in which the data is offered to the graph engine.
Hence, the only way to influence the legend order is to order the data of the report in the way you would like the legend to be.

Hope this helps ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
September 12, 2008, 04:24 AM
<JG>
GamP

Is correct the only option that you have with legends is to reverse the order.
What is interesting however is that setPieSorting(3) does not arrange the pie
as described in the documentation. The example does not even match the documented
description.

This makes it very difficult to even use annotations to force your own legends.
October 10, 2008, 11:16 AM
Laurie
We would like to be able to sort the legend other than alphabetical or reverse alphabetical so I will post an enhancement request for this feature.
March 12, 2015, 12:44 PM
MikeD
Hello, wondering if any enhancement has been completed to sort/order legends in stacked bar graphs (VBRSTK2) further to this post?

Thanks.


WebFOCUS 8.0.08
SQL Server 2012 Win7 IE9 HTMl/AHTML, PDF, Excel 2007 - 13