Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] side b side graphs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] side b side graphs
 Login/Join
 
Platinum Member
posted
Using the cars file as an example, what is the best way to have both guage graphs side by side.

TABLE FILE CAR
SUM
   RETAIL_COST
  BY COUNTRY
WHERE COUNTRY EQ 'W GERMANY';
 ON TABLE HOLD AS HOLD1 FORMAT ALPHA
END
-RUN
-SET &ECHO=ALL;
-READ HOLD1 &COUNTRY.A10. &COST.A7.
-SET &L1=0;
-SET &L2=&COST * 0.50;
-SET &L3=&COST * 0.80;
-SET &L4=&COST * 1;
-TYPE &L1
-TYPE &L2
-TYPE &L3
-TYPE &L4

-* TYPE &COUNTRY &COST
-* EXIT
GRAPH FILE HOLD1
SUM RETAIL_COST AS ''
  BY COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET HAXIS 1200
ON GRAPH SET VAXIS 500
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBITrueColors.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);

setGaugeBackgroundStyle(6);
setGaugeRelativeInnerRadius(0.81);
setGaugeRelativeThickness(0.15);

setScaleMin ( getY1Axis(), 0);
setScaleMax ( getY1Axis(), &COST.EVAL);

setGaugeBandMin(getGaugeBand1(), &L1);
setGaugeBandMax(getGaugeBand1(), &L2);
setGaugeBandMin(getGaugeBand2(), &L2);
setGaugeBandMax(getGaugeBand2(), &L3);
setGaugeBandMin(getGaugeBand3(), &L3);
setGaugeBandMax(getGaugeBand3(), &L4);
setGaugeBandMin(getGaugeBand4(), &L4);
setGaugeBandMax(getGaugeBand4(), &L4);
setGaugeBandMin(getGaugeBand5(), &L4);
setGaugeBandMax(getGaugeBand5(), &L4);




setTextUnderlineType(getY1Label(),1);
setFontSizeInPoints(getGaugeTitle(),100);
setPlaceResize(getGaugeTitle(),0);
setFontSizeAbsolute(getGaugeTitle(),false);
setFontSizeInPoints(getAnnotation(0),100);
setPlaceResize(getAnnotation(0),0);
setFontSizeAbsolute(getAnnotation(0),false);
setDisplay(getY1Label(),true);
setTextFormatPreset(getY1Label(),0);
setFontName(getY1Label(),"Arial");
setFontStyle(getY1Label(),0);
setAxisSide(getY1Axis(),0);
setDisplay(getTitle(),true);
setTextString(getTitle(),"");
setFillColor(getChartBackground(),new Color(255,255,255));
setTransparentBorderColor(getChartBackground(),true);
setGaugeBackgroundStyle(1);
setFillColor(getGaugeArea(),new Color(255,255,255));
setGaugeColorCenterByQuality(true);
setFontStyle(getGaugeTitle(),2);
setDisplay(getGaugeValue(),true);
setFillColor(getGaugeValue(),new Color(32,0,32));
setFontSizeAbsolute(getGaugeValue(),true);
setFontSizeInPoints(getGaugeValue(),7);
setPlaceResize(getGaugeValue(),0);
setFontStyle(getGaugeValue(),2);
setFillColor(getY1Label(),new Color(0,0,0));
setFontSizeAbsolute(getY1Label(),true);
setFontSizeInPoints(getY1Label(),6);
setPlaceResize(getY1Label(),0);
-*setGaugeBandMax(getGaugeBand1(),10.0);
-*setGaugeBandMin(getGaugeBand2(),10.0);
-*setGaugeBandMax(getGaugeBand2(),20.0);
-*setGaugeBandMin(getGaugeBand3(),20.0);
-*setGaugeBandMax(getGaugeBand3(),30.0);
setTextString(getAnnotation(0),"0-50%");
setDisplay(getAnnotation(0),true);
setFillColor(getAnnotationBox(0),new Color(255,0,0));
setTextString(getAnnotation(1),"51-80%");
setDisplay(getAnnotation(1),true);
setShadowColor(getAnnotation(1),new Color(255,255,0));
setFillColor(getAnnotationBox(1),new Color(255,255,0));
setTextString(getAnnotation(2),"81-100%");
setDisplay(getAnnotation(2),true);
setFillColor(getAnnotationBox(2),new Color(0,255,0));
setRect(getAnnotation(0),new Rectangle(-2666.0,9018.0,3200.0,1939.0));
setRect(getAnnotation(1),new Rectangle(-2666.0,7078.0,3200.0,1939.0));
setRect(getAnnotation(2),new Rectangle(-2666.0,5139.0,3200.0,1939.0));
setBorderColor(getGaugeBand2(),new Color(255,255,0));
setFillColor(getGaugeBand2(),new Color(255,255,0));
setBorderColor(getGaugeBand3(),new Color(0,255,0));
setFillColor(getGaugeBand3(),new Color(0,255,0));
ENDSTYLE
ON GRAPH SET STYLE *
TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=2, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=3, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=BOLD+UNDERLINE, $
TYPE=HEADING, LINE=2, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=NORMAL, $
TYPE=HEADING, LINE=3, ITEM=1, OBJECT=FIELD, SIZE=10, STYLE=BOLD, $
ENDSTYLE
END
-RUN
TABLE FILE CAR
SUM
   RETAIL_COST
  BY COUNTRY
WHERE COUNTRY EQ 'FRANCE';
 ON TABLE HOLD AS HOLD2 FORMAT ALPHA
END
-RUN
-SET &ECHO=ALL;
-READ HOLD2 &COUNTRY.A10. &COST.A7.
-SET &L1=0;
-SET &L2=&COST * 0.50;
-SET &L3=&COST * 0.80;
-SET &L4=&COST * 1;
-TYPE &L1
-TYPE &L2
-TYPE &L3
-TYPE &L4

-* TYPE &COUNTRY &COST
-* EXIT
GRAPH FILE HOLD2
SUM RETAIL_COST AS ''
  BY COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET HAXIS 1200
ON GRAPH SET VAXIS 500
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBITrueColors.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);

setGaugeBackgroundStyle(6);
setGaugeRelativeInnerRadius(0.81);
setGaugeRelativeThickness(0.15);

setScaleMin ( getY1Axis(), 0);
setScaleMax ( getY1Axis(), &COST.EVAL);

setGaugeBandMin(getGaugeBand1(), &L1);
setGaugeBandMax(getGaugeBand1(), &L2);
setGaugeBandMin(getGaugeBand2(), &L2);
setGaugeBandMax(getGaugeBand2(), &L3);
setGaugeBandMin(getGaugeBand3(), &L3);
setGaugeBandMax(getGaugeBand3(), &L4);
setGaugeBandMin(getGaugeBand4(), &L4);
setGaugeBandMax(getGaugeBand4(), &L4);
setGaugeBandMin(getGaugeBand5(), &L4);
setGaugeBandMax(getGaugeBand5(), &L4);




setTextUnderlineType(getY1Label(),1);
setFontSizeInPoints(getGaugeTitle(),100);
setPlaceResize(getGaugeTitle(),0);
setFontSizeAbsolute(getGaugeTitle(),false);
setFontSizeInPoints(getAnnotation(0),100);
setPlaceResize(getAnnotation(0),0);
setFontSizeAbsolute(getAnnotation(0),false);
setDisplay(getY1Label(),true);
setTextFormatPreset(getY1Label(),0);
setFontName(getY1Label(),"Arial");
setFontStyle(getY1Label(),0);
setAxisSide(getY1Axis(),0);
setDisplay(getTitle(),true);
setTextString(getTitle(),"");
setFillColor(getChartBackground(),new Color(255,255,255));
setTransparentBorderColor(getChartBackground(),true);
setGaugeBackgroundStyle(1);
setFillColor(getGaugeArea(),new Color(255,255,255));
setGaugeColorCenterByQuality(true);
setFontStyle(getGaugeTitle(),2);
setDisplay(getGaugeValue(),true);
setFillColor(getGaugeValue(),new Color(32,0,32));
setFontSizeAbsolute(getGaugeValue(),true);
setFontSizeInPoints(getGaugeValue(),7);
setPlaceResize(getGaugeValue(),0);
setFontStyle(getGaugeValue(),2);
setFillColor(getY1Label(),new Color(0,0,0));
setFontSizeAbsolute(getY1Label(),true);
setFontSizeInPoints(getY1Label(),6);
setPlaceResize(getY1Label(),0);
-*setGaugeBandMax(getGaugeBand1(),10.0);
-*setGaugeBandMin(getGaugeBand2(),10.0);
-*setGaugeBandMax(getGaugeBand2(),20.0);
-*setGaugeBandMin(getGaugeBand3(),20.0);
-*setGaugeBandMax(getGaugeBand3(),30.0);
setTextString(getAnnotation(0),"0-50%");
setDisplay(getAnnotation(0),true);
setFillColor(getAnnotationBox(0),new Color(255,0,0));
setTextString(getAnnotation(1),"51-80%");
setDisplay(getAnnotation(1),true);
setShadowColor(getAnnotation(1),new Color(255,255,0));
setFillColor(getAnnotationBox(1),new Color(255,255,0));
setTextString(getAnnotation(2),"81-100%");
setDisplay(getAnnotation(2),true);
setFillColor(getAnnotationBox(2),new Color(0,255,0));
setRect(getAnnotation(0),new Rectangle(-2666.0,9018.0,3200.0,1939.0));
setRect(getAnnotation(1),new Rectangle(-2666.0,7078.0,3200.0,1939.0));
setRect(getAnnotation(2),new Rectangle(-2666.0,5139.0,3200.0,1939.0));
setBorderColor(getGaugeBand2(),new Color(255,255,0));
setFillColor(getGaugeBand2(),new Color(255,255,0));
setBorderColor(getGaugeBand3(),new Color(0,255,0));
setFillColor(getGaugeBand3(),new Color(0,255,0));
ENDSTYLE
ON GRAPH SET STYLE *
TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=2, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=3, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=BOLD+UNDERLINE, $
TYPE=HEADING, LINE=2, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=NORMAL, $
TYPE=HEADING, LINE=3, ITEM=1, OBJECT=FIELD, SIZE=10, STYLE=BOLD, $
ENDSTYLE
END

  

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


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Expert
posted Hide Post
hmmm, this looks familiar...

  
-SET &ECHO=ALL;
-SET &APPFOLDER  = 'baseapp/';
-SET &USERID     = GETUSER('A8');
-SET &LC_USER    = LOCASE(8, &USERID, 'A8');
-SET &GIF_FILE1  = &LC_USER || 'graph1' || '.jpg' ;
-SET &PATH       = &APPFOLDER || &GIF_FILE1;
APP FI GRAPH2 DISK &PATH
-RUN
TABLE FILE CAR
SUM
   RETAIL_COST
  BY COUNTRY
WHERE COUNTRY EQ 'W GERMANY';
 ON TABLE HOLD AS HOLD1 FORMAT ALPHA
END
-RUN
-SET &ECHO=ALL;
-READ HOLD1 &COUNTRY.A10. &COST.A7.
-SET &L1=0;
-SET &L2=&COST * 0.50;
-SET &L3=&COST * 0.80;
-SET &L4=&COST * 1;
-TYPE &L1
-TYPE &L2
-TYPE &L3
-TYPE &L4

-* TYPE &COUNTRY &COST
-* EXIT
GRAPH FILE HOLD1
SUM RETAIL_COST AS ''
  BY COUNTRY
-*ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET HAXIS 375
ON GRAPH SET VAXIS 225
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH HOLD AS GRAPH2 FORMAT GIF
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBITrueColors.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);

setGaugeBackgroundStyle(6);
setGaugeRelativeInnerRadius(0.81);
setGaugeRelativeThickness(0.15);

setScaleMin ( getY1Axis(), 0);
setScaleMax ( getY1Axis(), &COST.EVAL);

setGaugeBandMin(getGaugeBand1(), &L1);
setGaugeBandMax(getGaugeBand1(), &L2);
setGaugeBandMin(getGaugeBand2(), &L2);
setGaugeBandMax(getGaugeBand2(), &L3);
setGaugeBandMin(getGaugeBand3(), &L3);
setGaugeBandMax(getGaugeBand3(), &L4);
setGaugeBandMin(getGaugeBand4(), &L4);
setGaugeBandMax(getGaugeBand4(), &L4);
setGaugeBandMin(getGaugeBand5(), &L4);
setGaugeBandMax(getGaugeBand5(), &L4);




setTextUnderlineType(getY1Label(),1);
setFontSizeInPoints(getGaugeTitle(),100);
setPlaceResize(getGaugeTitle(),0);
setFontSizeAbsolute(getGaugeTitle(),false);
setFontSizeInPoints(getAnnotation(0),100);
setPlaceResize(getAnnotation(0),0);
setFontSizeAbsolute(getAnnotation(0),false);
setDisplay(getY1Label(),true);
setTextFormatPreset(getY1Label(),0);
setFontName(getY1Label(),"Arial");
setFontStyle(getY1Label(),0);
setAxisSide(getY1Axis(),0);
setDisplay(getTitle(),true);
setTextString(getTitle(),"");
setFillColor(getChartBackground(),new Color(255,255,255));
setTransparentBorderColor(getChartBackground(),true);
setGaugeBackgroundStyle(1);
setFillColor(getGaugeArea(),new Color(255,255,255));
setGaugeColorCenterByQuality(true);
setFontStyle(getGaugeTitle(),2);
setDisplay(getGaugeValue(),true);
setFillColor(getGaugeValue(),new Color(32,0,32));
setFontSizeAbsolute(getGaugeValue(),true);
setFontSizeInPoints(getGaugeValue(),7);
setPlaceResize(getGaugeValue(),0);
setFontStyle(getGaugeValue(),2);
setFillColor(getY1Label(),new Color(0,0,0));
setFontSizeAbsolute(getY1Label(),true);
setFontSizeInPoints(getY1Label(),7);
setPlaceResize(getY1Label(),0);
-*setGaugeBandMax(getGaugeBand1(),10.0);
-*setGaugeBandMin(getGaugeBand2(),10.0);
-*setGaugeBandMax(getGaugeBand2(),20.0);
-*setGaugeBandMin(getGaugeBand3(),20.0);
-*setGaugeBandMax(getGaugeBand3(),30.0);
setTextString(getAnnotation(0),"0-50%");
setDisplay(getAnnotation(0),true);
setFillColor(getAnnotationBox(0),new Color(255,0,0));
setTextString(getAnnotation(1),"51-80%");
setDisplay(getAnnotation(1),true);
setShadowColor(getAnnotation(1),new Color(255,255,0));
setFillColor(getAnnotationBox(1),new Color(255,255,0));
setTextString(getAnnotation(2),"81-100%");
setDisplay(getAnnotation(2),true);
setFillColor(getAnnotationBox(2),new Color(0,255,0));
setBorderColor(getGaugeBand2(),new Color(255,255,0));
setFillColor(getGaugeBand2(),new Color(255,255,0));
setBorderColor(getGaugeBand3(),new Color(0,255,0));
setFillColor(getGaugeBand3(),new Color(0,255,0));

setRect(getAnnotation(0),new Rectangle(-9666.0,9018.0,3200.0,1939.0));
setRect(getAnnotation(1),new Rectangle(-9666.0,7078.0,3200.0,1939.0));
setRect(getAnnotation(2),new Rectangle(-9666.0,5139.0,3200.0,1939.0));


ENDSTYLE
ON GRAPH SET STYLE *
TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=2, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=3, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=BOLD+UNDERLINE, $
TYPE=HEADING, LINE=2, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=NORMAL, $
TYPE=HEADING, LINE=3, ITEM=1, OBJECT=FIELD, SIZE=10, STYLE=BOLD, $
ENDSTYLE
END
-RUN

-SET &GIF_FILE2  = &LC_USER || 'graph2' || '.jpg' ;
-SET &PATH       = &APPFOLDER || &GIF_FILE2;
APP FI GRAPH2 DISK &PATH
-RUN

TABLE FILE CAR
SUM
   RETAIL_COST
  BY COUNTRY
WHERE COUNTRY EQ 'FRANCE';
 ON TABLE HOLD AS HOLD2 FORMAT ALPHA
END
-RUN
-SET &ECHO=ALL;
-READ HOLD2 &COUNTRY.A10. &COST.A7.
-SET &L1=0;
-SET &L2=&COST * 0.50;
-SET &L3=&COST * 0.80;
-SET &L4=&COST * 1;
-TYPE &L1
-TYPE &L2
-TYPE &L3
-TYPE &L4

-* TYPE &COUNTRY &COST
-* EXIT
GRAPH FILE HOLD2
SUM RETAIL_COST AS ''
  BY COUNTRY
-* ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET HAXIS 375
ON GRAPH SET VAXIS 225
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH GAUGE1
ON GRAPH HOLD AS GRAPH2 FORMAT GIF
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBITrueColors.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);

setGaugeBackgroundStyle(6);
setGaugeRelativeInnerRadius(0.81);
setGaugeRelativeThickness(0.15);

setScaleMin ( getY1Axis(), 0);
setScaleMax ( getY1Axis(), &COST.EVAL);

setGaugeBandMin(getGaugeBand1(), &L1);
setGaugeBandMax(getGaugeBand1(), &L2);
setGaugeBandMin(getGaugeBand2(), &L2);
setGaugeBandMax(getGaugeBand2(), &L3);
setGaugeBandMin(getGaugeBand3(), &L3);
setGaugeBandMax(getGaugeBand3(), &L4);
setGaugeBandMin(getGaugeBand4(), &L4);
setGaugeBandMax(getGaugeBand4(), &L4);
setGaugeBandMin(getGaugeBand5(), &L4);
setGaugeBandMax(getGaugeBand5(), &L4);




setTextUnderlineType(getY1Label(),1);
setFontSizeInPoints(getGaugeTitle(),100);
setPlaceResize(getGaugeTitle(),0);
setFontSizeAbsolute(getGaugeTitle(),false);
setFontSizeInPoints(getAnnotation(0),100);
setPlaceResize(getAnnotation(0),0);
setFontSizeAbsolute(getAnnotation(0),false);
setDisplay(getY1Label(),true);
setTextFormatPreset(getY1Label(),0);
setFontName(getY1Label(),"Arial");
setFontStyle(getY1Label(),0);
setAxisSide(getY1Axis(),0);
setDisplay(getTitle(),true);
setTextString(getTitle(),"");
setFillColor(getChartBackground(),new Color(255,255,255));
setTransparentBorderColor(getChartBackground(),true);
setGaugeBackgroundStyle(1);
setFillColor(getGaugeArea(),new Color(255,255,255));
setGaugeColorCenterByQuality(true);
setFontStyle(getGaugeTitle(),2);
setDisplay(getGaugeValue(),true);
setFillColor(getGaugeValue(),new Color(32,0,32));
setFontSizeAbsolute(getGaugeValue(),true);
setFontSizeInPoints(getGaugeValue(),7);
setPlaceResize(getGaugeValue(),0);
setFontStyle(getGaugeValue(),2);
setFillColor(getY1Label(),new Color(0,0,0));
setFontSizeAbsolute(getY1Label(),true);
setFontSizeInPoints(getY1Label(),6);
setPlaceResize(getY1Label(),0);
-*setGaugeBandMax(getGaugeBand1(),10.0);
-*setGaugeBandMin(getGaugeBand2(),10.0);
-*setGaugeBandMax(getGaugeBand2(),20.0);
-*setGaugeBandMin(getGaugeBand3(),20.0);
-*setGaugeBandMax(getGaugeBand3(),30.0);
setTextString(getAnnotation(0),"0-50%");
setDisplay(getAnnotation(0),true);
setFillColor(getAnnotationBox(0),new Color(255,0,0));
setTextString(getAnnotation(1),"51-80%");
setDisplay(getAnnotation(1),true);
setShadowColor(getAnnotation(1),new Color(255,255,0));
setFillColor(getAnnotationBox(1),new Color(255,255,0));
setTextString(getAnnotation(2),"81-100%");
setDisplay(getAnnotation(2),true);
setFillColor(getAnnotationBox(2),new Color(0,255,0));
setRect(getAnnotation(0),new Rectangle(-2666.0,9018.0,3200.0,1939.0));
setRect(getAnnotation(1),new Rectangle(-2666.0,7078.0,3200.0,1939.0));
setRect(getAnnotation(2),new Rectangle(-2666.0,5139.0,3200.0,1939.0));
setBorderColor(getGaugeBand2(),new Color(255,255,0));
setFillColor(getGaugeBand2(),new Color(255,255,0));
setBorderColor(getGaugeBand3(),new Color(0,255,0));
setFillColor(getGaugeBand3(),new Color(0,255,0));

setRect(getAnnotation(0),new Rectangle(-10566.0,7018.0,3200.0,1939.0));
setRect(getAnnotation(1),new Rectangle(-10566.0,5078.0,3200.0,1939.0));
setRect(getAnnotation(2),new Rectangle(-10566.0,3139.0,3200.0,1939.0));


ENDSTYLE
ON GRAPH SET STYLE *
TYPE=HEADING, LINE=1, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=2, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=3, JUSTIFY=CENTER, $
TYPE=HEADING, LINE=1, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=BOLD+UNDERLINE, $
TYPE=HEADING, LINE=2, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=NORMAL, $
TYPE=HEADING, LINE=3, ITEM=1, OBJECT=FIELD, SIZE=10, STYLE=BOLD, $
ENDSTYLE
END
-RUN
DEFINE FILE CAR
 IMAGE1/A200='<img src=http://localhost:8080/approot/baseapp/&GIF_FILE1>';
 IMAGE2/A200='<img src=http://localhost:8080/approot/baseapp/&GIF_FILE2>';
 X1A/A150        = '<TABLE>';
 X1B/A15         = '<TR>';
 X1C/A20         = '</TR>';
 X1D/A10         = '</TABLE>';
 X1E/A30         = '<TD COLSPAN=5 align="left">';
 X_END/A5        = '</TD>';
 X2A/A30         = '<TD COLSPAN=5 align="center">';
END
TABLE FILE CAR
HEADING
"<X1A<X1B<X1E<IMAGE1<X_END<X2A<IMAGE2<X_END<X1C<X1D"
"</12 "
BY COUNTRY NOPRINT
IF RECORDLIMIT EQ 1
ON TABLE SET PAGE-NUM OFF
ON TABLE SET HTMLCSS ON
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
     UNITS=CM,
     PAGESIZE='Letter',
     LEFTMARGIN=0.400000,
     RIGHTMARGIN=0.050000,
     TOPMARGIN=0.000000,
     BOTTOMMARGIN=0.000000,
     ORIENTATION=LANDSCAPE,
     SQUEEZE=ON,
$
ENDSTYLE
END
-RUN
-EXIT


hth


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
lol!!! Thanks again


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] side b side graphs

Copyright © 1996-2020 Information Builders