Focal Point
[SOLVED] HBRSTK1 changes

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

October 20, 2017, 03:12 PM
Doug
[SOLVED] HBRSTK1 changes
I would like your help with these two items, as minor as they seem, I can't see where to do them in IA.

1) Add the "38" on the top or bottom of the reference line.
2) remove the "0" and "100" from below the graph (axis min/max values).

I'll take the "edit in Text" results.

I thank you in advance Smiler

APP PREPENDPATH IBISAMP
-RUN
DEFINE FILE CAR
BLANK/A1 WITH COUNTRY = '' ;
END
GRAPH FILE CAR
SUM CAR.BODY.DEALER_COST NOPRINT
COMPUTE LOEND/I3 = 50 ; HIEND/I3 = 50 ;
BY CAR.ORIGIN.BLANK AS ''
ON GRAPH PCHOLD AS HOLD FORMAT PNG
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET HAXIS 255
ON GRAPH SET VAXIS 85
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH HBRSTK1
ON GRAPH SET GRAPHSTYLE *
setReferenceLineValueY1(0,38);
setLegendDisplay(false);
setFontSizeAbsolute(getDataText(0),true);
setFontSizeInPoints(getDataText(0),10);
setY1MajorGridStep(100);
setScaleMinAuto(getY1Axis(),false);
setScaleMin(getY1Axis(),0);
setScaleMaxAuto(getY1Axis(),false);
setScaleMax(getY1Axis(),100);
setDisplay(getY1Axis(),false);
setDisplay(getReferenceLineY1(0),true);
setLineWidth(getReferenceLineY1(0),2);
ENDSTYLE
ON GRAPH SET STYLE *
TYPE=DATA, COLUMN=LOEND, COLOR=RGB(255 085 080), $
TYPE=DATA, COLUMN=HIEND, COLOR=RGB(149 196 088), $
ENDSTYLE
END
-RUN

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
October 20, 2017, 04:43 PM
MReeder
moves y-axis to top = setAxisSide(getY1Axis(),1);
removes y-axis = setDisplay(getY1Label(),false);

not sure where the 38 comes into play. The bars are 50/50.


WebFOCUS 8.2.02M
Windows
Server/8.2.02M
All Outputs
October 20, 2017, 06:17 PM
Doug
Smiler Thanks, that worked...

The "38" is 1/2 of 76 used to place the marker. I would like to see the "38" either above of below that reference line.

The two 50s are just to show a total of 100%. The first 50 is below 76 (bad) / the second 50 is above 76 (good). The bottom line is that this a a make-shift "Bullet Chart".

Thanks Again, Doug