Focal Point
[CLOSED] Set a ReferenceLine on Horizontal Axis using date

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1637011196

February 13, 2019, 05:52 PM
BobV
[CLOSED] Set a ReferenceLine on Horizontal Axis using date
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
February 14, 2019, 01:32 PM
Doug
How about converting it to a date format via DEFINE, then using the defined field?




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
February 14, 2019, 01:32 PM
BabakNYC
I believe the Reference Line requires a numeric value. I doubt you can draw a reference line for a date field.


WebFOCUS 8206, Unix, Windows
February 14, 2019, 02:49 PM
cldiaz
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