August 09, 2011, 04:51 AM
JACQUETLLOOKGRAPH VBAR : DataTextPosition with 0 value
Hi,
Is it possible to change value of setDataTextPosition according to the data grapher.
I want to position the text above the bar only if the value is 0 if the position in the bar.
Is it possible?
setDataTextPosition(4) to setDataTextPosition(0) only for 0 value...
See example :
GRAPH FILE CAR
-* Created by Advanced Graph Assistant
SUM CAR.BODY.SEATS
CNT.CAR.CARREC.MODEL
COMPUTE TEST_VALUE/D12.2=0;
BY CAR.ORIGIN.COUNTRY
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 8
ON GRAPH SET VAXIS 4
ON GRAPH SET UNITS INCHES
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *
setTemplateFile("");
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(5);
setTransparentBorderColor(getChartBackground(),true);
setTransparentBorderColor(getSeries(0),true);
setTransparentBorderColor(getSeries(1),true);
setTransparentBorderColor(getSeries(2),true);
setTransparentBorderColor(getSeries(3),true);
setTransparentBorderColor(getSeries(4),true);
setTransparentBorderColor(getSeries(5),true);
setTransparentBorderColor(getSeries(6),true);
setTransparentBorderColor(getSeries(7),true);
setTransparentBorderColor(getSeries(8),true);
setTransparentBorderColor(getSeries(9),true);
setTransparentBorderColor(getSeries(10),true);
setPlace(true);
setDisplay(getDataText(0),false);
setDisplay(getDataText(),true);
setDataTextPosition(4);
ENDSTYLE
END
Thanks
August 09, 2011, 05:36 PM
WazI don't believe that you can, but you can check with the WebFOCUS graphics documentation or go to Threedgraphics.com to check there documentation, they supplied the graph engine.