Karanth,
1) Yes, use a graphtype of between 55 and 60.
2) Again, Yes. Look at the programming methods within the graphing
manual to determine what you need to program into your fex between -
ON GRAPH SET GRAPHSTYLE *
-* Pie chart
set GraphType(55);
ENDSTYLE
Create a prototype and run it, using "-SET &ECHO=ALL;", to HTML output and examine the HTML source
3) If you are outputing to Excel then you will need to save the image on your network in a location that is accessable to your Web Client, and then place an HREF to it in your Excel output.
For instance on Windows, create a network share on your client server pointing at //servername/install folder/IBI/WebFOCUS53/IBI_HTML called IBI_HTML. Create a new directory under IBI_HTML and call it tempcharts, and then you can code -
FILEDEF mygraph DISK //servername/IBI_HTML/tempcharts/mygraph.gif
-RUN
GRAPH FILE CAR
SUM RCOST
DCOST
BY COUNTRY
ON GRAPH SET GRAPHEDIT OFF
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET GRID OFF
ON GRAPH SET GRMERGE ON
ON GRAPH SET VAXIS 200
ON GRAPH SET HAXIS 200
ON GRAPH SET GRAPHSTYLE *
setGraphType(55);
ENDSTYLE
ON GRAPH HOLD AS mygraph FORMAT GIF
END
-RUN
-Graph
DEFINE FILE CAR
GRAPH/A100 = '<IMG BORDER=0 SRC=/IBI_HTML/tempcharts/mygraph.gif>';
END
TABLE FILE CAR
SUM RCOST
DCOST
BY COUNTRY
FOOTING
"<GRAPH"
ON TABLE PCHOLD FORMAT EXL2K
END
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 | |