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     [CLOSED] Set a ReferenceLine on Horizontal Axis using date
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Set a ReferenceLine on Horizontal Axis using date
 Login/Join
 
Gold member
posted
I was attempting to add a reference line to the horizontal axis of a line graph. The axis is a date. When I try to put a value, like 20190115, FOCUS reads as a decimal. Is there a way to set the reference line to today's date. Would I need to code that?

thanks
Bob

This message has been edited. Last edited by: FP Mod Chuck,


WF (App Studio) 8.2.01m / Windows
Mainframe FOCUS 8
 
Posts: 92 | Registered: February 20, 2008Reply With QuoteReport This Post
Expert
posted Hide Post
How about converting it to a date format via DEFINE, then using the defined field?


   See you at Summit! In FOCUS Since 1983 ~ from PC FOCUS to WebFOCUS.
   Currrently using 8204 Gen 48 in Test and Production.
   KGPCo at CenturyLink. October 2017 to Present...
 
Posts: 2967 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I believe the Reference Line requires a numeric value. I doubt you can draw a reference line for a date field.


WebFOCUS 8204, Unix, Windows
 
Posts: 1617 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Silver Member
posted Hide Post
We've had issues adding vertical reference lines (intervention lines) and got them added using this. Maybe you can change the axis to 'y' to get what you need? This also allows for multiple reference lines.

*GRAPH_JS
 referenceLines: [
   {value: '12/2017',
      axis: 'x',
      line: {color: 'black', width: 1,dash: '' },
      label: {text: 'IF you want\n reference line\n text put it here\n',
         font: '8pt Sans-Serif',
         color: 'black' },
      anchor: 'end',
      showValue: true
   },{value: '01/2018',
      axis: 'x',
      line: {color: 'black', width: 1,dash: '' },
      label: {text: 'Optional text here\n',
         font: '8pt Sans-Serif',
         color: 'black' },
      anchor: 'end',
      showValue: true
   }]
   *END  

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


WebFOCUS 8204
Windows, All Outputs
 
Posts: 43 | Registered: March 21, 2014Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Set a ReferenceLine on Horizontal Axis using date

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