Is it possible to have a curved reference line? In the code below, I want the reference line to move with the max.seats for each maker. I do realize I could use a new series line instead of a reference line, but I like the way the reference line is labeled on the chart instead of in the legend as it would be with a series. Thanks!
GRAPH FILE CAR
SUM
MAX.SEATS NOPRINT
CNT.MODEL
BY CAR
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
COLUMN=N2, GRAPH-COMMAND='setReferenceLineValue(getReferenceLineY1(0),$VALUE)', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setTextRotation(getO1Label(),1);
setDisplay(getReferenceLineY1(0),true);
setTextString(getReferenceLineTextY1(0),"Max Number of Seats");
*END
ENDSTYLE
END
This message has been edited. Last edited by: <Emily McAllister>,
WF 8.0.08 (Prod); WF 8.2.06 (Dev)
September 13, 2016, 04:54 PM
<Emily McAllister>
Hello Evan, I am a little confused by your question. In what way do you want the reference line to curve, and why?
Thanks, Emily McAllister Focal Point Moderator
September 14, 2016, 02:20 AM
Dave
Evan,
you can't.
Like you said, make a new series. But I think you can add a extra annotation ( without a line ) and perhaps dynamically align it with the first value of your newly created series?
G'luck.
_____________________ WF: 8.0.0.9 > going 8.2.0.5
September 14, 2016, 07:57 AM
Squatch
If you curve a reference line, doesn't it cease to be a reference line?
App Studio WebFOCUS 8.1.05M Windows, All Outputs
September 14, 2016, 08:43 AM
evan.brown
quote:
Originally posted by Dave: Evan,
you can't.
Like you said, make a new series. But I think you can add a extra annotation ( without a line ) and perhaps dynamically align it with the first value of your newly created series?
G'luck.
Thank you, I will look into adding an annotation.
WF 8.0.08 (Prod); WF 8.2.06 (Dev)
September 14, 2016, 08:47 AM
evan.brown
quote:
Originally posted by Emily McAllister: Hello Evan, I am a little confused by your question. In what way do you want the reference line to curve, and why?
Thanks, Emily McAllister Focal Point Moderator
I wanted the reference line to curve as the max number of seats changed from model to model. What I want to do, is have the user be able to compare whether or not their value (not calculated here)is above or below this line.
WF 8.0.08 (Prod); WF 8.2.06 (Dev)
September 14, 2016, 08:50 AM
evan.brown
quote:
Originally posted by Squatch: If you curve a reference line, doesn't it cease to be a reference line?
In WebFOCUS, it appears it DOES cease to be a reference line