COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: dinos on 24 Apr 2009 02:51:44 PM

Title: Graph Order doesn't match the Legend Order
Post by: dinos on 24 Apr 2009 02:51:44 PM
Hello!

I am trying to match the sequence of a series in a stacked graph with the way the series are shown in the legend.  For some reason I cannot figure out, the stacked graph always shows the data in reverse sequence compared to the legend sequence.  I have tried sorting the series in asc, desc order and no luck...always the reverse order is shown in the graph compared to the legend.

In the attached example, you can see what I am encountering. I would like the way the first column in the graph, for example, to appear in the same order as shown in the legend.

Is there a way to force the graph to present the series in the same sequence as they appear in the legend?
Title: Re: Graph Order doesn't match the Legend Order
Post by: CognosPaul on 26 Apr 2009 12:21:57 AM
I've snooped around the javascript that controls the stacked charts. The chart paints the categories bottom up, and the legend top down. As far as it's concerned, the legend is in order. I haven't had a chance yet to really start hacking the chart, but I did think of an annoying workaround.

The workaround is long, and only works if you have a finite number of series. I do not believe it is worth the effort, but here you go:


Or you could just say it can't be done.
Title: Re: Graph Order doesn't match the Legend Order
Post by: dinos on 27 Apr 2009 07:59:50 AM
Thanks so much for the response.  I agree...maybe too much effort for a simple visual tweak.  Cheers.

Title: Re: Graph Order doesn't match the Legend Order
Post by: treizech on 01 Jun 2016 04:28:22 AM
hi everybody,

Is it something new about this Problem with the newest Version ?
In Cognos 10.2 I have the same visual Problem.

thanks for your comments

Fabien