Focal Point
[CLOSED] How to reduce the space between Y axis Title and Label

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

July 11, 2012, 04:58 AM
Priya Parthan
[CLOSED] How to reduce the space between Y axis Title and Label
Hi -
I have created a compound PDF, with a line chart as the first object. I have defined it as
2 Y axis chart. I have given a title for each of the Y axis. But there is a wide gap between the Title and the label.

Ihave tried to change the DIMENSION for the chart, but that does not reduce the gap.
Pls help.

COMPOUND LAYOUT PCHOLD FORMAT PDF
SECTION=Section_1, LAYOUT=ON, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, LEFTMARGIN=0.25, RIGHTMARGIN=0.25, TOPMARGIN=0.25, BOTTOMMARGIN=0.25, $
COMPONENT=Chart_1, COMPONENT-TYPE=GRAPH, POSITION=(0.011875 1.6375), DIMENSION=(8.789583 1.935416), METADATA='VERSION:1.0', $
END

SET COMPONENT=Chart_1
GRAPH FILE CAR
SUM
DEALER_COST
RETAIL_COST
ACROSS
CAR
ON GRAPH SET VZERO OFF
-*-INCLUDE /ibi/apps/P_L_Report/P_L_Report_format.fex
ON GRAPH SET LOOKGRAPH VLINSTK2
ON GRAPH SET GRAPHSTYLE *
setCylinderBarEffect(true);
setFillType(getSeries(0), 2);
setFillType(getSeries(1), 2);


setGradientPinPosition(getSeries(0), 0.0,0);
setGradientPinPosition(getSeries(0), 0.35,1);
setGradientPinPosition(getSeries(0), 1.0,2);

setGradientPinLeftColor(getSeries(0),new Color(049,156,194), 0);
setGradientPinRightColor(getSeries(0),new Color(049,156,194), 0);
setGradientPinLeftColor(getSeries(0),new Color(049,156,194), 1);
setGradientPinRightColor(getSeries(0),new Color(049,156,194), 1);
setGradientPinLeftColor(getSeries(0),new Color(049,156,194), 2);
setGradientPinRightColor(getSeries(0),new Color(049,156,194), 2);

setGradientPinPosition(getSeries(1), 0.0,0);
setGradientPinPosition(getSeries(1), 0.35,1);
setGradientPinPosition(getSeries(1), 1.0,2);

setGradientPinLeftColor(getSeries(1),new Color(172,206,067), 0);
setGradientPinRightColor(getSeries(1),new Color(172,206,067), 0);
setGradientPinLeftColor(getSeries(1),new Color(172,206,067), 1);
setGradientPinRightColor(getSeries(1),new Color(172,206,067), 1);
setGradientPinLeftColor(getSeries(1),new Color(172,206,067), 2);
setGradientPinRightColor(getSeries(1),new Color(172,206,067), 2);

setBorderColor(getO1AxisLine(),new Color(130,130,130));
setBorderColor(getY1AxisLine(),new Color(130,130,130));
setBorderColor(getY1ZeroLine(),new Color(130,130,130));
setFillColor(getY1ZeroLine(),new Color(130,130,130));


setTransparentBorderColor(getSeries(0),TRUE);
setTransparentBorderColor(getSeries(1),TRUE);

setTransparentBorderColor(getChartBackground(),true);
setFillColor(getChartBackground(),new Color(255,255,255));

setY1MajorGridStyle(0);
setO1MajorGridDisplay(false);


setFrameAutoShade(true);
setColorMode(1);

setDisplay(getDataText(0), false);

setFontName(getO1Title(),"TIMES NEW ROMAN");
setFontSizeAbsolute(getO1Title(), true);
setFontSizeInPoints(getO1Title(), 8);
setPlaceResize(getO1Title(), 0);
setFontStyle(getO1Title(),0);
setTextJustHoriz(getO1Title(),1);
setFillColor(getO1Title(),new Color(66,70,73));
setFontName(getO1Label(),"ARIAL");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 6);
setPlaceResize(getO1Label(), 0);
setFontStyle(getO1Label(),0);
setTextJustHoriz(getO1Label(),1);
setFillColor(getO1Label(),new Color(66,70,73));

setFontName(getY1Label(),"ARIAL");
setFontSizeAbsolute(getY1Label(), true);
setFontSizeInPoints(getY1Label(), 6);
setPlaceResize(getY1Label(), 0);
setFontStyle(getY1Label(),0);
setTextJustHoriz(getY1Label(),2);
setFillColor(getY1Label(),new Color(66,70,73));
setFontName(getY1Title(),"TIMES NEW ROMAN");
setFontSizeAbsolute(getY1Title(), true);
setFontSizeInPoints(getY1Title(), 8);
setPlaceResize(getY1Title(), 0);
setFontStyle(getY1Title(),0);
setTextJustHoriz(getY1Title(),1);

setFontSizeAbsolute(getY2Label(), true);
setFontSizeInPoints(getY2Label(), 6);
setPlaceResize(getY2Label(), 0);
setFontStyle(getY2Label(),0);
setTextJustHoriz(getY2Label(),2);
setFillColor(getY2Label(),new Color(66,70,73));
setFontName(getY2Title(),"TIMES NEW ROMAN");
setFontSizeAbsolute(getY2Title(), true);
setFontSizeInPoints(getY2Title(), 8);
setPlaceResize(getY2Title(), 0);
setFontStyle(getY2Title(),0);
setTextJustHoriz(getY2Title(),1);


setFillColor(getFrame(),new Color(255,255,255));
setFillColor(getO1Label(),new Color(0,0,0));
setFillColor(getY1Label(),new Color(0,0,0));
setFillColor(getO1Title(),new Color(0,0,0));
setFillColor(getY1Title(),new Color(0,0,0));
setBorderColor(getY1MajorGrid(),new Color(0,0,0));
setBorderColor(getO1MajorGrid(),new Color(0,0,0));
setTextJustHoriz(getTitle(),1);
setPlaceAlign(getTitle(),0);
setFontSizeAbsolute(getTitle(),true);
setFontName(getTitle(),"Arial");
setFontSize(getTitle(),10);
setFontStyle(getTitle(),0);
setO1LabelWrap(true);
setO1LabelStagger(false);
setO1LabelRotate(0);
setO1LabelAutoSkip(0);

setRiserWidth(40);
setDepthRadius(0);
setDepthAngle(0);


setLegendAutomatic(true);
setLegendTextAutofit(true);
setTextJustHoriz(getLegendText(),1);
setTextWrap(getLegendText(),false);

setLegendMarkerPosition(0);
setFontName(getLegendText(),"Arial");
setFontSizeAbsolute(getLegendText(),true);
setFontSize(getLegendText(),11);
setFontStyle(getLegendText(),0);
setLegendOrient(1);
setLegendDisplay(true);
setLegendPosition(1);

setFillColor(getSeries(1),new Color(102,141,60));
setFillColor(getSeries(0),new Color(0,151,172));

setFillColor(getSeries(1),new Color(195,54,44));
setFillColor(getSeries(0),new Color(102,141,60));

setLineWidth(getSeries(0),1.8);
setLineWidth(getSeries(1),1.8);

setMarkerShape(getSeries(0),2);
setMarkerSize(getSeries(0),18);
setMarkerShape(getSeries(1),2);
setMarkerSize(getSeries(1),18);

setAxisAssignment(getSeries(0),0);
setAxisAssignment(getSeries(1),1);
setDisplay(getY2MajorGrid(),false);
setTextFormatPreset(getY2Label(),10);


setTextString(getFootnote(),"foot note testing");
setDisplay(getFootnote(),false);
setFontName(getFootnote(),"Arial");
setTextUnderlineType(getFootnote(),5);

setY1TitleDisplay(true);
setY1TitleString("Dealer_Cost");

setY2TitleDisplay(true);
setY2TitleString("Retail_Cost");

setPlace(true);

ENDSTYLE

END
COMPOUND END

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


migrating from WebFOCUS 7.1 to WebFOCUS 7.6
Windows
Output: PDF and HTML
July 11, 2012, 10:00 AM
Fernando
I suspect that you will need to play with sizing the frame and title. Here is a sample:

  
setPlace(false);

setRect(getFrame(),new Rectangle(-6000,3300,20000,9800));

setRect(getTitle(),new Rectangle(-600,330,1000,800));




Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03