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

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Advance Graphics Reference Line
Go
New
Search
Notify
Tools
Reply
  
[Solved] Advance Graphics Reference Line
 Login/Join
 
Expert
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,


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
 
Posts: 3036 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Expert
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 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1956 | Location: Centennial, CO | Registered: January 31, 2006Reply With QuoteReport This Post
Expert
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: 3036 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Guru
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: 285 | Location: UK | Registered: October 26, 2007Reply With QuoteReport This Post
Expert
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: 3036 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Guru
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: 285 | Location: UK | Registered: October 26, 2007Reply With QuoteReport This Post
Expert
posted Hide Post
No problem... Your clarification is accepted...
 
Posts: 3036 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Solved] Advance Graphics Reference Line

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