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
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.
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
There's a property called element border width that you need to play with to get the desired results
~Adi
Thanks
Is that element in the .json file?
Yes, it is.
"style":
{
"width":
{
"min":10,
"preferred":20,
"max":20
}
}
Christian
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?
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.
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.
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.