IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [Solved] Advance Graphics Reference Line
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Platinum Member
Posted
How can a reference line be added to a bar chart? The value for the reference line would come from a dynamic variable which is set and DEFINEd prior to the GRAPH FILE [filename]. But how does it get displayed within the graph? While we’re at it, how about adding a trend line to the same graph?

Thanks, Doug

This message has been edited. Last edited by: Doug,



Available for Consulting Assignments
NC TheFamiLee Network: WF DS 764 on HP laptop.
 
Posts: 83 | Location: North Carolina | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Doug,

If you SEARCHED on REFERENCE LINE, 4 pages of threads, all of your questions would be answered...

Tom


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 648 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Thanks Tom, I searched on "advanced graphics line" and didn't get relevant info. I did the "reference line" search and did find a few "reference line" results mixed in with many "reference" and "line" results. It's better then my 1st search results.
 
Posts: 83 | Location: North Carolina | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
quote:
Originally posted by Doug:
Thanks Tom, I searched on "advanced graphics line" and didn't get relevant info. I did the "reference line" search and did find a few "reference line" results mixed in with many "reference" and "line" results. It's better then my 1st search results.


thats how many search engines work- you basically have to get a bit clever with them and try and think of the terms others would have used when asking the question...

i would say 95% of my questions i don't bother my mentors with are solved by using the search, there is an awful lot of info in there, it's a case of weeding out out what you need...


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 192 | Location: UK | Registered: October 26, 2007Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
Be nice now nubi, I know how search engines work and I'm not afraid to use them. Perspective for Java had what I needed. I do, normally, find what I'm looking for here in The WebFOCUS World...

Anyway, here's what I was looking for, and it works great:

setReferenceLine (getY1Axis(), 0, 45000);
setLineWidth (getReferenceLine (getY1Axis(), 0), 3);
setFillColor (getReferenceLine (getY1Axis(), 0), new Color (255, 0, 0));

NOTE, FYI: this is good for a bar chart with a yaxis gt 45000, as in:
GRAPH FILE CAR
SUM DEALER_COST
ACROSS COUNTRY
ON GRAPH SET LOOKGRAPH VBAR...

-Doug
 
Posts: 83 | Location: North Carolina | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
no drama intended i just didn't know if you wre one of these users who didn't - it seems posts on here could actually be answered with a search through the archives but many people complain of not finding the results they need so its worth reiterating that search engines are 'dumb' and you need to make them 'smart'


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 192 | Location: UK | Registered: October 26, 2007Reply With QuoteEdit or Delete MessageReport This Post
Platinum Member
Posted Hide Post
No problem... Your clarification is accepted...
 
Posts: 83 | Location: North Carolina | Registered: February 23, 2005Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    [Solved] Advance Graphics Reference Line

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