This message has been edited. Last edited by: Developer,quote:Originally posted by Tulsi:
I have tried a chart according to your condition . hope this code will work for you. my webfcous version is 8201m and it is a jschart .
GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.SPECS.BHP
CAR.SPECS.RPM
BY CAR.COMP.CAR
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=DATA, COLUMN=N1, BUCKET=row, $
TYPE=DATA, COLUMN=N2, BUCKET=x-axis, $
TYPE=DATA, COLUMN=N3, BUCKET=y-axis, $
TYPE=DATA, COLUMN=N4, BUCKET=y-axis, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getY1MajorGrid(),true);
setAxisSide(getO1Axis(),1);
setDisplay(getO1Title(),false);
*GRAPH_JS_FINAL
"xaxis": {
"title": {
"visible": false
}
},
"pieProperties": {
"holeSize": "0%"
},
"blaProperties": {
"seriesLayout": "percent",
"orientation": "horizontal"
},
"agnosticSettings": {
"chartTypeFullName": "Bar_Percent_Horizontal"
}
*END
ENDSTYLE
END
-RUN
quote:ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
quote:Originally posted by Tony A:quote:ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
WF 8.02? No such release.
Remove the section that I have highlighted and rerun. This works OK.
Might it be a suggestion that you seek out some structured training? This was a simple change to the supplied example by Tulsi that should have been easy to spot.
T
quote:WebFOCUS 7.6.9
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
quote:Originally posted by Tony A:quote:WebFOCUS 7.6.9
So which release are you actually using, 7.6.9 or 8.2?
If you are on 7.6.9 as per your signature then, yes, that is why it doesn't work in that release.
Have you tried using the GUI to construct this chart or just hand coded it?
WF 7.6.9 is a very old release (and is functionally stabilised?) and it is probably not in common use now - hence no responses as to example code for that release.
I would also urge you to insist to your management team that you require training and not just to be pointed at the Forum and told "learn from there". Not only will you benefit but you company will too.
T
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |