January 29, 2007, 05:18 AM
FrankDutchvisualize
I want to visualize some numbers in a report, but would like to give the graphs other colors than the available ones.
How can that be done?
I tried GRAPHCOLOR=RGB(0 75 130) but that gives an error.
Any suggestions?
January 29, 2007, 08:12 AM
Tony ASame on 7.1.3 when format is HTML. OK in PDF though.
T
January 29, 2007, 08:27 AM
FrankDutchSorry Tony
I do not understand the answer.
But what I tried to do was change a gif file in the vis directory. That is not the best solution sinc now my color "olive" gifs me the desired color. I would however add some company colors to the directorie instead of change them and also these new added colors should be in my list.
January 29, 2007, 08:32 AM
mgrackinFrank,
Here's something to try. There is a standard list of color names that can be used in the GRAPHCOLOR statement listed on page 29-31 of the Creating Reports manual. When creating the HTML results, the name is translated into the hex value for that color. The hex value is then used to create the name of the GIF file that is then used in the HTML. For example, GRAPHCOLOR=AQUA creates the following IMAGE tag in the HTML output:
<IMG SRC="/ibi_html/vis/g00ffff.gif" ...>
Here's what you do. Pick a color name you never use such as AQUA. Edit the GIF file in the ibi_html/vis directory with an image editor program and change the color of the image to whatever you want. Now everytime you reference AQUA you will see the custom color instead. I used Windows Paint program to change the gif color and it works.
THIS ONLY WORKS FOR HTML. Use the GRAPHCOLOR=RGB(0 75 130) statement for PDF output.
January 29, 2007, 08:40 AM
mgrackinFrank,
Susannah wrote an article about doing this and much more which is avaialble in the Focus on Developers section of Focal Point at:
http://www.informationbuilders.com/support/developers/GRAPHTYPE.htmlSusannah did a very nice job with this article and it could be useful to you since she explains a better way than editing the GIF files.
January 29, 2007, 08:42 AM
Tony AFrank,
I was merely stating that with HTML output in 7.1.3 I got the same error as you, but when specifying PDF output then I had the required results
I would agree with Mickey on the method, use the document that Susannah wrote in the Focus on Developers section. Good stuff!!
T
January 29, 2007, 08:44 AM
mgrackinTony,
Ironically, the manual I have (7.1) does not say you can use RGB for PDF output. Do you have a more recent Creating Reports manual that documents using the RGB for PDF output?
January 29, 2007, 08:57 AM
Tony AHi Mickey,
No just the "suck it and see" manual approach
lol
T
January 29, 2007, 10:20 AM
susannahJanuary 29, 2007, 11:02 AM
FrankDutchSusannah
I found your document, it's great.
Mickey
what you suggested was what I did, but I wondered if you would not be able to add an extra gif file that can have the name "company_color1" and is visible in the selction list
Tony
I will give the different way of PDF and HTML a try.