Focal Point
[SOLVED]Graph Frame Properties

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

August 26, 2016, 02:02 PM
evan.brown
[SOLVED]Graph Frame Properties
When I run the following fex, my frame background for 0 to 7 is the green shade I want. Then, I want from 7 to 14 to be red. However, the red only goes from 7 to 10. What about these properties am I not setting correctly? Thanks
  
GRAPH FILE CAR
SUM
CNT.COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setScaleMax(getY1Axis(),14.0);
setAltFmtFrameNumColors(getY1AltFmtFrame(),3);
setAltFmtFrameSeparator(getY1AltFmtFrame(0),0.0);
setFillColor(getY1AltFmtFrame(0),new Color(195,0,47));
setAltFmtFrameSeparator(getY1AltFmtFrame(1),7.0);
setFillColor(getY1AltFmtFrame(1),new Color(119,188,31));
ENDSTYLE
END

This message has been edited. Last edited by: evan.brown,


WF 8.0.08 (Prod); WF 8.2.06 (Dev)
August 30, 2016, 11:58 AM
Tamra
evan.brown,

Please replace your commands with the following:

setScaleMax(getY1Axis(),14.0);
setAltFmtFrameNumColors(getY1AltFmtFrame(),3);
setAltFmtFrameSeparator(getY1AltFmtFrame(0),7.0);
setAltFmtFrameSeparator(getY1AltFmtFrame(1),14.0);
setFillColor(getY1AltFmtFrame(0),new Color(119,188,31));
setFillColor(getY1AltFmtFrame(1),new Color(195,0,47));

The above should fill up the entire frame.

Thank you for participating in the Focal Point Forum.

Kind Regards,
Tamra Colangelo
IBI Focal Point Moderator


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
August 30, 2016, 12:35 PM
evan.brown
I see, the separator must be the upper limit. Thank you.


WF 8.0.08 (Prod); WF 8.2.06 (Dev)