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

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Default Chart Palette

Started by watknb, 05 Mar 2012 02:15:53 PM

Previous topic - Next topic

watknb

Hi,

I have changed the default chart palette in ChartPalettes.xml to the same colours as the "Jazz" palette as we would like to use this as our corporate default.

However, when dragging a chart onto the page in report studio it doesn't use the default palette unless I select it.

Does anyone know how to change it to use my default by "default"? - i.e. without having to tell users to set the palette to "Default".

Thanks in advance!
watknb


Grim

This tells you how to do it.
http://www.ibm.com/developerworks/data/library/cognos/page323.html

However in order to have "Your Palette" be the default I would assume you would replace "normalDefault" with your palette, but keep the name. Test this before you implement it in production. I would also suggest moving "normalDefault" down the list and calling it something else.
"Honorary Master of IBM Links"- MFGF
Certified IBM C8 & C10 Admin, Gamer, Geek and all around nice guy.
<-Applaud if my rant helped! 8)

watknb

Thanks Grim,

I have changed the colours of the normalDefault palette, but despite the name those are not the colours used by "Default".

The actual Default palette seems to be unspecified, so I was wondering if there is a way of setting the palette to normalDefault in GlobalReportStyles.css?

Grim

Quote from: watknb on 07 Mar 2012 02:50:27 AM
Thanks Grim,

I have changed the colours of the normalDefault palette, but despite the name those are not the colours used by "Default".

The actual Default palette seems to be unspecified, so I was wondering if there is a way of setting the palette to normalDefault in GlobalReportStyles.css?

What version of Cognos are you running?

I don't see any color related stuff in the Global.css. This should all be done in the Palette file. Are you restarting Report Studio everytime you test?

Oh, if your using IIS as your webserver, it can be finicky, you might want to try bouncing the IIS service as well.
"Honorary Master of IBM Links"- MFGF
Certified IBM C8 & C10 Admin, Gamer, Geek and all around nice guy.
<-Applaud if my rant helped! 8)

watknb

We're on 8.4.1 FP4.

I have restarted and bounced the web service. I think the best way to see what is happening is in the spec...

A chart straight out of the box ends with...

   <style>
      <defaultStyles>
         <defaultStyle refStyle="ch"/>
      </defaultStyles>
   </style>
</combinationChart>

And if you then choose a palette you get..

<style>
      <defaultStyles>
         <defaultStyle refStyle="ch"/>
      </defaultStyles>
   </style>
   <chartPalette><chartGradient direction="up" fromColor="#307796" toColor="#b8ced4"/><chartGradient direction="up"
      fromColor="#b95e4e" toColor="#e89f89"/><chartGradient direction="up"
      fromColor="#979937" toColor="#c9cb2c"/><chartGradient direction="up"
      fromColor="#ca9732" toColor="#ffd97e"/><chartGradient direction="up"
      fromColor="#7b4a7a" toColor="#be91bf"/><chartGradient direction="up"
      fromColor="#94b0a7" toColor="#e2eded"/><chartGradient direction="up"
      fromColor="#892c1c" toColor="#d67f63"/><chartGradient direction="up"
      fromColor="#9ea059" toColor="#dcdb7a"/><chartGradient direction="up"
      fromColor="#b4872d" toColor="#e2bb3d"/><chartGradient direction="up"
      fromColor="#9d7fb9" toColor="#d7cce5"/><chartGradient direction="up"
      fromColor="#697a1c" toColor="#a0b331"/><chartGradient direction="up"
      fromColor="#a76438" toColor="#fabd97"/><chartGradient direction="up"
      fromColor="#0f6a69" toColor="#66bdbb"/><chartGradient direction="up"
      fromColor="#95545d" toColor="#eb9ea8"/><chartGradient direction="up"
      fromColor="#519bb3" toColor="#a7d2db"/><chartGradient direction="up"
      fromColor="#eeca63" toColor="#f7e4b0"/>
   </chartPalette>
   </combinationChart>

The first graph has no colours defined, but clearly defaults to something and I cant see how that can be changed!?