Focal Point
LOOKGRAPH VBAR : DataTextPosition with 0 value

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

August 09, 2011, 04:51 AM
JACQUETL
LOOKGRAPH 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


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
August 09, 2011, 05:36 PM
Waz
I 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.


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!