COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => RAVE Visualizations => Topic started by: CognosMI on 21 Aug 2015 11:18:13 AM

Title: Managing Column widths in visualizations
Post by: CognosMI on 21 Aug 2015 11:18:13 AM
I have question about a visualization chart.  I have a clustered column chart and I need to increase the size(width) of the bars.  It appears that when I increase the number of categories the size of the columns decreases.  How do I control that? 

Thanks for any insight

Title: Re: Managing Column widths in visualizations
Post by: bdbits on 21 Aug 2015 05:50:49 PM
Well it has to make room for the additional categories somehow. :)

Have you set the chart to a fixed width? If so, you might just need to make it wider.
Title: Re: Managing Column widths in visualizations
Post by: CognosMI on 24 Aug 2015 10:48:26 AM
Yes  have made the chart 2X as wide and it doesn't change the width of the columns and there is a lot of wasted space.  See attached
Title: Re: Managing Column widths in visualizations
Post by: adicognos on 20 Jan 2016 02:10:53 PM
There's a property called element border width that you need to play with to get the desired results
~Adi
Title: Re: Managing Column widths in visualizations
Post by: CognosMI on 20 Jan 2016 03:40:17 PM
Thanks

Is that element in the .json file?
Title: Re: Managing Column widths in visualizations
Post by: Christian85 on 08 Feb 2016 01:55:39 PM
Yes, it is.

"style":
               {
                  "width":
                  {
                     "min":10,
                     "preferred":20,
                     "max":20
                  }
}

Christian
Title: Re: Managing Column widths in visualizations
Post by: dougp on 26 Jul 2019 12:58:31 PM
Sorry about resurrecting this old post, but it's all I can find on the topic.

What .json file?  I don't see a property named ".json file" in the properties list for any of the objects in the visualization.

How can a report developer control the appearance of a column chart visualization?
Title: Re: Managing Column widths in visualizations
Post by: MFGF on 26 Jul 2019 01:28:36 PM
Quote from: dougp on 26 Jul 2019 12:58:31 PM
Sorry about resurrecting this old post, but it's all I can find on the topic.

What .json file?  I don't see a property named ".json file" in the properties list for any of the objects in the visualization.

How can a report developer control the appearance of a column chart visualization?

Hi Doug,

If it's a RAVE visualization (the technology introduced in Cognos 10.2.1) then you can download the viz code for it or you can create your own from scratch if you are good with writing code. You'll need the visualization customiser app, which you can download from here:

https://www.ibm.com/developerworks/community/groups/service/html/communityview?communityUuid=9685c9a6-3133-4823-85e8-f5f81268267a#fullpageWidgetId=W561990aafebc_4d8b_9af8_7c03c0081265&folder=fa9cc7b3-7307-4a15-abc0-352e43dafb1a

Each viz is held as a zipped bundle - when you open this in the customiser you then get access to the .json code, and you can change it if you like.

There are also a number of collections of visualizations you can grab from that site too (all zipped up a second time into one big zip) - take a look at https://www.ibm.com/developerworks/community/groups/service/html/communitystart?communityUuid=9685c9a6-3133-4823-85e8-f5f81268267a

Cheers!

MF.

Title: Re: Managing Column widths in visualizations
Post by: dougp on 26 Jul 2019 05:52:53 PM
So this thread wasn't about a report developer controlling the behavior of the report.  This was about an administrator making changes to the system.

So it sounds like report developers are just stuck unless their local Cognos administrator is better at creating RAVE visualizations than IBM is.

Thanks.
Title: Re: Managing Column widths in visualizations
Post by: MFGF on 29 Jul 2019 07:24:46 AM
Quote from: dougp on 26 Jul 2019 05:52:53 PM
So this thread wasn't about a report developer controlling the behavior of the report.  This was about an administrator making changes to the system.

So it sounds like report developers are just stuck unless their local Cognos administrator is better at creating RAVE visualizations than IBM is.

Thanks.

Yep - that's pretty much it in a nutshell. It's nothing to do with setting properties in a report, it's amending the definition of the visualization code and having your admin re-import it.

Cheers!

MF.