Focal Point
[SOLVED] Advanced Graph - Pie Chart

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

December 27, 2011, 02:22 AM
Elaine
[SOLVED] Advanced Graph - Pie Chart
Does anyone know that how to modify the line size of pie chart markers in advanced graph?
PS:I mean the length of the line.

This message has been edited. Last edited by: Kerry,
December 27, 2011, 04:02 PM
Waz
I think this may be related to the size of the chart area.

You can change this with VAXIS and HAXIS or by setting the size of the chart frame.


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!

December 28, 2011, 01:45 AM
Elaine
Hi Waz,
I changed the size of the chart frame, but the length of the markers' line didn't change.
I think it's not the right way to work this out.

December 28, 2011, 03:58 PM
Waz
In the example below, if you change the HAXIS to 600 the chart also changes and the lines are shortened

GRAPH FILE CAR
SUM CAR.BODY.SALES 
ACROSS CAR.ORIGIN.COUNTRY 
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH SET VAXIS 600
ON GRAPH SET HAXIS 1200
-*ON GRAPH SET HAXIS 600
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setMarkerDisplay(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(true);
setO1MajorGridStyle(0);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setRiserBorderMode(1);
setSeriesDefaultTransparentBorderColor(true);
setUseSeriesBorderDefaults(true);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);
ENDSTYLE
END



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!

December 29, 2011, 04:40 AM
Elaine
Yes, the lines are shortened. But the graph is smaller than before.
Is there another way to fix this?
December 29, 2011, 09:36 AM
David Briars
I was able to change the width of the pie chart feeler lines with:
setLineWidth(getPieFeelerLine(),10);

I could not find a similiar setting for the length of the feeler lines.




Pilot: WebFOCUS 8.2.06 Test: WebFOCUS 8.1.05M Prod: WebFOCUS 8.1.05M Server: Windows Server 2016/Tomcat Standalone Workstation: Windows 10/IE11+Edge Database: Oracle 12c, Netezza, & MS SQL Server 2019 Output: AHTML/XLSX/HTML/PDF/JSCHART Tools: WFDS, Repository Content, BI Portal Designer & ReportCaster
December 29, 2011, 10:03 AM
Tom Flynn
Are feeler lines mandatory? We do not use them:
  
-*INTERNAL_PROPERTIES$SampleData=false;OBJECTID=GLOBAL
-*INTERNAL_PROPERTIES$GlobalRecordLimit=500;OBJECTID=GLOBAL
-*INTERNAL_PROPERTIES$FieldDisplayMode=label;OBJECTID=GLOBAL
-*INTERNAL_PROPERTIES$PrefixDisplayMode=;OBJECTID=GLOBAL
GRAPH FILE CAR
-* Created by Advanced Graph Assistant
SUM COMPUTE PROFIT/P13.2M = RETAIL_COST - DEALER_COST; AS ''
BY COUNTRY
HEADING
"            TOTAL RETAIL COST BY COUNTRY"
" "
ON GRAPH PCHOLD  FORMAT JPEG
ON GRAPH SET GRAPHDEFAULT OFF
-*ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 0
ON GRAPH SET HAXIS 370
ON GRAPH SET VAXIS 275
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH PIEMULTI
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("/images/tdg/template/IBISouthWestern.txt");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setFontName(getDataText(),"Verdana");
setDepthAngle(65);
setPieDepth(45);
restoreAllSlices();
setPieFeelerTextDisplay(2);
setPieTilt(5);
setDisplay(getPieLabel(),true);
setLegendAutomatic(true);
setFontStyle(getLegendText(),2);
setFontStyle(getPieSliceLabel(),2);
setTextFormatPreset(getPieSliceLabel(),5);
setFontSizeInPoints(getTitle(),12);
setFontSizeAbsolute(getPieSliceLabel(),true);
setFontSizeInPoints(getPieSliceLabel(),8);
setFontSizeAbsolute(getLegendText(),true);
setFontSizeInPoints(getLegendText(),8);
setTextFormatPattern(getDataText(),"$#,###.##");
setFontSizeInPoints(getO1Label(),9);
setFontSizeInPoints(getY1Label(),9);
setFontSize(getDataText(),10);
setFontSizeAbsolute(getTitle(),true);
setFontSizeInPoints(getTitle(),12);
setLegendMarkerPosition(0);
setTransparentBorderColor(getChartBackground(),true);
setRect(getPieFrame(),new Rectangle(-15500,-10500,27000,27000));
setPieLabelDisplay(0);
ENDSTYLE
ON GRAPH SET STYLE *
TYPE=REPORT, FONT='VERDANA', SIZE=9, $
TYPE=HEADING, STYLE=BOLD,$
ENDSTYLE
END
-RUN


You can play around with these to increase/decrease frame properties:

setRect(getPieFrame(),new Rectangle(-15500,-10500,27000,27000));


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
December 29, 2011, 03:37 PM
Waz
quote:
setRect(getPieFrame(),new Rectangle(-15500,-10500,27000,27000));


Thats what I was trying to find, but could only remember chart frames.

Good One


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!

December 29, 2011, 05:12 PM
Tom Flynn
Thanks Warren!

Happy New Year to YOU Down Under!!!

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
December 29, 2011, 05:22 PM
Waz
And you.





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!

December 29, 2011, 05:42 PM
Prarie
Happy New Year All!
December 29, 2011, 05:59 PM
Waz
Let the celebrations start......


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!

December 30, 2011, 04:26 AM
Elaine
This is amazing.
Thank you and Happy New Year to you all Big Grin