Focal Point
Datavelues in graph

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

August 09, 2007, 02:41 PM
<John.lee>
Datavelues in graph
Hi
How can we controle the size of the Datavalues in the Bar-graph

This message has been edited. Last edited by: <John.lee>,
August 09, 2007, 04:50 PM
FrankDutch
John
what do you mean by size.

fontsize?
value picture? like 12.2 or 7.1
the values on the X and Y-axis?




Frank

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

August 09, 2007, 05:01 PM
<John.lee>
Hi Frank
I meen the font size of data values ,not the values of X and Y-axis
(values that are shows of the bars in the Bargraphs)
thanks
August 09, 2007, 05:26 PM
FrankDutch
John

We all would like you to update your signature so we do know what wf version you are using.

Do you have the file wf713graph.pdf that you can (should) download from the IBI website.

If you have it, search for setFontSize
and things like

setDataTextDisplay(true);
setDataTextPosition(0);
setDataTextAngleDefault(90);
setDataTextRadiusDefault(10);

setDepthAngle (0);
setDepthRadius (0);
setGraphType (41);
setCustomDataText (getSeries (2), true);
setCustomDataText (getSeries (1), true);
setCustomDataText (getSeries (0), true);
setTextFormatPreset(getDataText (2), 5);
setTextFormatPreset(getDataText (1), 6);
setTextFormatPreset(getDataText (0), 2);
setDataTextDisplay (true);
setViewableSeries (3);
setFontName(getDataText(2), "Comic Sans MS");
setFontName(getDataText(0), "Garamond");
setFontSizeAbsolute(getDataText(1), true);
setFontSize(getDataText(1), 14);
setTextJustHoriz(getDataText(1),1);
setShadowDisplay(getDataText(1), true);

just meant as example.....




Frank

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

August 09, 2007, 05:47 PM
<John.lee>
Hi Frank
Iam using 7.1.4 vertion
here is the my code
it is not solved yet
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB ON
ON GRAPH SET 3D ON
ON GRAPH SET VZERO ON
ON GRAPH SET GRID OFF
ON GRAPH SET VAXIS 500
ON GRAPH SET HAXIS 500
ON GRAPH PCHOLD FORMAT PNG
-*ON GRAPH HOLD AS BDS101 FORMAT GIF
ON GRAPH SET GRAPHSTYLE *
setDepthRadius(20);
setDepthAngle (45);
setRiserWidth (90);
-*******************************
setDataTextDisplay(true);
setDataTextPosition(0);
setDataTextAngleDefault(90);
setDataTextRadiusDefault(10);
setFontSizeAbsolute(getDataText(1), true);
setFontSize(getDataText(1), 40);
setFontName(getDataText(25), "Comic Sans MS");
-*******************************
setRiserBarGroupSpacing(20);
setTextFormatPattern(getY1Label(),"#.##");
setLegendTextAutofit(false);
setLegendTextAutofit(false);
setFillColor(getLegendArea(),new Color(255,255,255));
setMarkerDisplay(false);
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);
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(true);
-*setTitleString("Bar Graph: Day of Week - R-100" );
setFontSizeAbsolute(getTitle(),true);
-*setFootnoteString("Announced Visits: \nUnannounced Visits: ");
setFontSizeAbsolute(getFootnote(),true);
setFillColor(getFootnote(),new Color(128,0,0));
setLegendTextAutofit(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontStyle(getY1Label(),2);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setTextJustHoriz(getO1Title(),2);
setFontSizeAbsolute(getO1Title(),true);
setTextJustHoriz(getO1Label(),2);
setFontSizeAbsolute(getO1Label(),true);
setFontSize(getO1Label(),15.5);
setFontSize(getY1Label(),15.5);
setFontStyle(getO1Label(),2);
setTextRotation(getO1Label(),1);
setPlace(false);
ENDSTYLE
Please check this and advise me
thanks