Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Go
New
Search
Notify
Tools
Reply
  
Graph Legend Border
 Login/Join
 
Virtuoso
posted
Anyone know how to put a border, such as a box, around a graph legend?

Version 5.3.2 with the Old Graph Engine...
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
Prarie22, as far as I know, it has to be done in the advanced editor.

If you are creating the graphs using Dev Studio you will see the "Edit" button. Once in there, highlight the Legend and you'll see a button in the upper right. Click it to reveal the advanced functions (where you'll find Lines and Colors).

You may have limited success this route.
 
Posts: 55 | Registered: May 22, 2003Reply With QuoteReport This Post
Guru
posted Hide Post
The perspective for Java method call to show a border (black):
setTransparentBorderColor(getLegendArea(),false);

You may also want to play with:
setBorderColor(getLegendArea(),new Color(255,0,0));
(to make the legend box border red, for instance)
 
Posts: 391 | Location: California | Registered: April 14, 2003Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Thanks...I tried the last suggetion...and that worked...but the Box is over lapping the Graph...how do I make the Legend smaller...guess it was too close to begin with.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteReport This Post
Guru
posted Hide Post
You do something like this:
setRect(getLegendArea(),new Rectangle(9921,-7020,6040,15800));
where the first 2 values are some kind of x, y coordinates, and the last 2 are width and height of the box.
If you can get into the Graph Editor (as mentioned by Denver RSE) it is easier to find the right values to use (other than trial and error). I know in the version we are using (5.21) you can not always get into the editor. You might want to download the "Perspective for Java" manual. (Not easy to find things in it though)
 
Posts: 391 | Location: California | Registered: April 14, 2003Reply With QuoteReport This Post
<DocServices>
posted
Hi Prarie22,

As always this is a great forum to get the information you need. In case you need something a little more recent, we updated the "Perspective for Java Programmer's Manual" (DN2100945.0901) for version 5.3. It's now called "WebFOCUS Graphics 5.3" (DN4500605.0904).

Regards,
Jennifer Smiler
 
Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Smiler
Thanks to everyone for your help. I will review the documentation suggested. I need a good cheat sheet.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteReport This Post
<JG>
posted
I don't call 1347 pages a cheat sheet
 
Reply With QuoteReport This Post
Virtuoso
posted Hide Post
No I don't either...I should have said...I wish I had a good cheat sheet.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 


Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.