Focal Point
[CLOSED] Pie chart of greater than 99.99% does not show on PDF

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

February 15, 2012, 07:18 AM
WF World
[CLOSED] Pie chart of greater than 99.99% does not show on PDF
Hi All,

Please help.....!!!!!

When I run the below code I'm not getting PIE graph on PDF(but works on html). Ideally it should show 100% graph but it shows only a line without graph.
I'm not sure if I'm missing something that to be added.

but when we change the value of '2' in COMPUTE TO 1000 or 0 it shows perfectly but not somewhere close to 99.9999999999999%


  
TABLE FILE CAR
PRINT
COMPUTE MARKT_VAL1/I10 = IF COUNTRY EQ 'ENGLAND' THEN 56161 ELSE 2;
COUNTRY
WHERE COUNTRY EQ 'ENGLAND' OR 'JAPAN'
ON TABLE HOLD AS H_RET_NOTRET
END

GRAPH FILE H_RET_NOTRET
SUM
MARKT_VAL1 AS ''
BY COUNTRY
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 200
ON GRAPH SET VAXIS 150
ON GRAPH SET 3D OFF
ON GRAPH PCHOLD FORMAT PDF
-*ON GRAPH SAVE AS APIE FORMAT SVG
-*ON GRAPH HOLD AS APIE FORMAT SVG
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET GRMERGE ON
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setFillColor(getLegendArea(),new Color(255,255,255));
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setY1LabelDisplay(true);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(2);
setPieLabelDisplay(1);
setTextFormatPreset(getPieSliceLabel(),2);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(false);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
-*setTitleString("Account Composition\n(&&PIEMON)");
setTextJustHoriz(getTitle(),1);
setFontName(getTitle(),"Arial");
setFontSizeAbsolute(getTitle(),true);
setFontSize(getTitle(),10);
setFontStyle(getTitle(),0);
setTextRotation(getTitle(),0);
setTextWrap(getTitle(),false);
setPlaceResize(getTitle(),0);
setPlaceRotate(getTitle(),0);
setPlaceAlign(getTitle(),0);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontName(getPieSliceLabel(),"Arial");
setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSize(getPieSliceLabel(),10);
setFontStyle(getPieSliceLabel(),0);
setTextRotation(getPieSliceLabel(),0);
setTextWrap(getPieSliceLabel(),false);
setPlaceResize(getPieSliceLabel(),0);
setFontName(getLegendText(),"Arial");
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getLegendText(),10);
setFontStyle(getLegendText(),0);
setTextRotation(getLegendText(),0);
setTextWrap(getLegendText(),false);
setPlaceResize(getLegendText(),0);
setPlace(true);
ENDSTYLE
END

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


WebFOCUS 8.1.03
Windows, Linux All Outputs
February 15, 2012, 08:10 AM
Dave
I've tested your code...
...and it works.

It shows a PDF with a graph with 100% England and 0% Japan.

It might be a bug that's been fixed. Please enter your versions in your signature.


_____________________
WF: 8.0.0.9 > going 8.2.0.5
February 15, 2012, 08:19 AM
WF World
Dave,

7.7.02 is the version we use


WebFOCUS 8.1.03
Windows, Linux All Outputs
February 15, 2012, 08:20 AM
WF World
Dave,

Do I need to request IBI for patch.


WebFOCUS 8.1.03
Windows, Linux All Outputs
February 15, 2012, 02:37 PM
Waz
Are you able to post a screen shot of the PDF and HTML result ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 16, 2012, 02:35 AM
WF World
Please find the images generated for the same








Regards
Saran


WebFOCUS 8.1.03
Windows, Linux All Outputs
February 16, 2012, 02:38 AM
WF World
first image is PDF Format and the below is without any format.

I've also tried to save the image and call in the PDF but not difference.


WebFOCUS 8.1.03
Windows, Linux All Outputs
February 16, 2012, 02:29 PM
Waz
What is the exact environment your are running on. Windows ? Unix ? MF ? + version etc.

How are your running this ?, From Dev Studio ?, A server somewhere?

Whats the web server ?

May not be able to help but it gives a better profile, as this shouldn't happen.

One option to get this working, is to hold the graph as an JPG or SVG, and then stick it in a simple report, and retuen that.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!