Focal Point
[SOLVED] Southwestern Palatte

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/873108852

October 05, 2009, 06:47 PM
Laurie
[SOLVED] Southwestern Palatte
I understand the instructions on how to specify each color for the bar graph but mgmt wants to use your southwestern palatte and they want a specific order. How can I easily determine what the default color combinations are for each of those bars?

This message has been edited. Last edited by: Kerry,
October 06, 2009, 01:57 AM
<JG>
open the file /images/tdg/template/IBISouthWestern.txt

In it you will see all the API calls used to set the colors for the series.
16 colors are defined (0 to 15) and the border is set to black.

You can change this file as much as you like or create your own.
But remember, make sure you have a copy because it will be lost when you upgrade
October 06, 2009, 01:05 PM
Laurie
I have found the IBISouthWestern.txt in 2 folders,D:\ibi\srv76\home\graph and D:\ibi\DevStudio76\ibi_html\javaassist\images\tdg\template. I created my own txt file in both folders and am using this command in my graph.
setTemplateFile("/images/tdg/template/PrismSouthWestern.txt");

The graph in the report has the pastel colors rather than the southwestern colors so I do not believe it is finding the correct file. What else do I need change in order to create my own color scheme?
October 06, 2009, 03:22 PM
Laurie
I also copied my revised template to my local drives and still get the same behavior. It appears it is not finding or using my template.
October 06, 2009, 05:59 PM
Laurie
All that I changed was the order of these entries. What else would I need to change?

setFillColor(getSeries(0),new Color(158,144,188));
setFillColor(getSeries(1),new Color(255,243,172));
setFillColor(getSeries(10),new Color(0,112,115));
setFillColor(getSeries(11),new Color(160,81,3));
setFillColor(getSeries(12),new Color(67,126,28));
setFillColor(getSeries(13),new Color(159,159,159));
setFillColor(getSeries(14),new Color(146,0,67));
setFillColor(getSeries(15),new Color(0,83,125));
setFillColor(getSeries(2),new Color(106,189,187));
setFillColor(getSeries(3),new Color(240,159,97));
setFillColor(getSeries(4),new Color(195,218,125));
setFillColor(getSeries(5),new Color(223,223,223));
setFillColor(getSeries(6),new Color(230,122,131));
setFillColor(getSeries(7),new Color(108,149,200));
setFillColor(getSeries(8),new Color(102,0,112));
setFillColor(getSeries(9),new Color(183,171,0));
October 07, 2009, 10:02 AM
<JG>
Laurie, I've seen the problem before where it has not been able to find custom templates.

Try pasting your styling into one of the standard templates and see if that works
October 07, 2009, 10:56 AM
Laurie
I have resolved the problem. We recently moved to new servers and I was making the changes to the old one. Thanks for your help.