Wednesday, 22 February 2012

How to Customize Chart Series Colors



The default colors for the chart series are controlled from palette.cxml configuration file located in the directory < OracleBI>\web\app\res\s_{Style}\chartsupport . In this file, colors are represented by web hexa color codes . Apart from that for each of the chart type that are available in OBIEE, a separate configuration file is available in the directory < OracleBI>\web\app\res\s_{Style}\charts . And all these available chart types refer the palette.cxml file for the chart series color schemes defined taking them in order.
How to change series color across all Chart Type
1.       Locate the file palette.cxml in the path < OracleBI>\web\app\res\s_{Style}
          \chartsupport
2.       Make a copy of the palette.cxml file for backup purpose
3.       Make the following changes in the original copy
4.       Edit the <sawc:color value='{Hexa Color Code}' > as require
5.       Save the file and move a copy of the updated file to the application servers res
          container to the exact style and directory structure
6.       Restart the services for the changes to reflect

How to change series color for a specific Chart Type (For example, Pie Chart)
1.       Locate the file palette.cxml in the path < OracleBI>\web\app\res\s_{Style}
          \chartsupport 
2.       Make a copy of the palette.cxml file and name the file as  palette{chart-type}.cxml 
          (Example, palettepie.cxml )
3.       Make the following changes in the new file
4.       Edit the <sawc:color value='{Hexa Color Code}' > as required
5.       Save the file 
6.       To refer the newly created configuration file in the chart type, Edit the corresponding 
          chart type located in the path < OracleBI>\web\app\res\s_{Style}\charts  (for 
          example, To refer palettepie.cxml in pie chart edit the pie.cxml file)
7.      Replace the code referring the palette.cxml file 
         < xi:include href="fmap://chartSupport/palette.cxml" parse="xml"/> with the 
         new configuration file reference 
         < xi:include href="fmap://chartSupport/palettepie.cxml" parse="xml"/>
8.      Save changes to the configuration file and move a copy of the updated files 
         (palettepie.cxml,pie.cxml) to the application servers res container to the exact style 
         and directory structures
9.       Restart the services for the changes to reflect
Thanks to-http://obiee-bip.blogspot.in/2011_08_01_archive.html

No comments:

Post a Comment

Thanks to Comment
--Add--