IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    control the space between the labels in the legend box,
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
NAG
Member
Posted
Hi,
Iam using 7.1 version and iam working for Pie graphs.
I need to control the space between the labels in the legend box,
In some casses iam getting the space between labels is vary high in case of less number of lables(5)
Insome casses space is vary low if the number of labels are high(12)

here is the example iam trying to do
GRAPH FILE CAR
SUM WEIGHT AS ''
ACROSS CAR AS ''
-*WHERE RECORDLIMIT EQ 10
ON GRAPH SET LOOKGRAPH PIE
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET VAXIS 300
ON GRAPH SET HAXIS 300
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHSTYLE *
setLegendMarkersPerRow(1);
setTextFormatPattern(getY1Label(),"#");
setLegendTextAutofit(false);
setLegendAutomatic(false);
setPlaceResize(getLegendArea(),false)
setRect(getLegendArea(), new Rectangle(2500, -9500, 9000, 21000));
setMarkerDisplay(false);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);
setO1LabelDisplay(true);
setO1AxisSide(0);
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(false);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),1);
setPieFeelerTextDisplay(2);
setPieLabelDisplay(1);
setTextFormatPreset(getPieSliceLabel(),2);
setLegendDisplay(true);
setTextJustHoriz(getLegendText(),0);
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getLegendText(),10);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setFontName(getO1Label(),"Dialog");
setFontSizeAbsolute(getO1Label(),true);
setPlace(false);
ENDSTYLE

The space between Audi and BMW lables should controle according to the our requirement.

Thanks
Nag.
 
Posts: 28 | Registered: April 11, 2007Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
did you register on the technical site form IBI?

if so you can download the file wf713graph.pdf it will show you a lot of details that will be very helpful for you.




Frank

prod: WF 7.6.5 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.5 on the same platform and databases,IE7

 
Posts: 1635 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    control the space between the labels in the legend box,

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.