If you are unable to create a new account, please email bspsoftware@techdata.com

Author Topic: Managing Column widths in visualizations  (Read 34565 times)

CognosMI

  • Guest
Managing Column widths in visualizations
« 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


Offline bdbits

  • Super Moderator
  • Statesman
  • ******
  • Join Date: Feb 2010
  • Posts: 1,822
  • Forum Citizenship: +106/-0
Re: Managing Column widths in visualizations
« Reply #1 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.

CognosMI

  • Guest
Re: Managing Column widths in visualizations
« Reply #2 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

adicognos

  • Guest
Re: Managing Column widths in visualizations
« Reply #3 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

CognosMI

  • Guest
Re: Managing Column widths in visualizations
« Reply #4 on: 20 Jan 2016 03:40:17 pm »
Thanks

Is that element in the .json file?

Offline Christian85

  • Full Member
  • ***
  • Join Date: Sep 2013
  • Posts: 35
  • Forum Citizenship: +0/-0
Re: Managing Column widths in visualizations
« Reply #5 on: 08 Feb 2016 01:55:39 pm »
Yes, it is.

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

Christian

Offline dougp

  • Statesman
  • ******
  • Join Date: Jul 2014
  • Posts: 862
  • Forum Citizenship: +30/-1
Re: Managing Column widths in visualizations
« Reply #6 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?

Offline MFGF

  • Never knowingly correct
  • Super Moderator
  • Statesman
  • ******
  • Join Date: Jul 2005
  • Posts: 11,635
  • Forum Citizenship: +676/-10
  • Cognos Software Muppet
Re: Managing Column widths in visualizations
« Reply #7 on: 26 Jul 2019 01:28:36 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.

Meep!

Offline dougp

  • Statesman
  • ******
  • Join Date: Jul 2014
  • Posts: 862
  • Forum Citizenship: +30/-1
Re: Managing Column widths in visualizations
« Reply #8 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.

Offline MFGF

  • Never knowingly correct
  • Super Moderator
  • Statesman
  • ******
  • Join Date: Jul 2005
  • Posts: 11,635
  • Forum Citizenship: +676/-10
  • Cognos Software Muppet
Re: Managing Column widths in visualizations
« Reply #9 on: 29 Jul 2019 07:24:46 am »
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.
Meep!