COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Chandrasekar on 12 Mar 2015 02:24:08 AM

Title: Chart - bars width need same size
Post by: Chandrasekar on 12 Mar 2015 02:24:08 AM
Hello Guru's,

My Requirement:

In bar chart width size changed automatically based on legends. I want to fix same size.

Description:

My simple report is cognos 10.2 have, Product-line -> x- axis, Legend -> Year, Measure - Revenue.
1. If i run with Filter (i.e) [Year]=2012, I got one width size of bar .
2. If i run without filter, I got variance size(compare to previous chart) of bars in a chart.

I want to fix both times same size of bars in a chart. Can any one help me.

Thanks & Regards,
Chandrasekar.P
Title: Re: Chart - bars width need same size
Post by: BigChris on 12 Mar 2015 03:22:22 AM
I'd either remove the legend altogether, or else move it to below the chart.
Title: Re: Chart - bars width need same size
Post by: Chandrasekar on 12 Mar 2015 04:21:06 AM
Hi BigChris,

Thanks for your reply.

I did the following changes in a report. chart properties -> Chart Annotations -> Legend ->(used for bottom, bottom left, right and also remove legend). But it not works fine.

If i did any wrong changes, please correct me.

Thanks & Regards,
Chandrasekar.P
Title: Re: Chart - bars width need same size
Post by: Chandrasekar on 12 Mar 2015 04:38:39 AM
Hello BigChris,

For your reference i am attached sample code.

Thanks & Regards,
Chandrasekar.P