Focal Point
VERTICAL AXIS IS NOT NUMERIC..CAN'T GRAPH

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

August 16, 2013, 05:37 PM
Pri
VERTICAL AXIS IS NOT NUMERIC..CAN'T GRAPH
Hi,

I am getting a below error when i print across a non numeric field in horizontal graph.
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
ENDSTYLE
END
VERTICAL AXIS IS NOT NUMERIC..CAN'T GRAPH

Here is the code
GRAPH FILE H_EXTGP
SUM
PER_NM
BY E_CMP
BY E_CMPT
BY ESPT
BY ESPU
BY EUPT
BY E_SL
BY E_SLS
BY E_UNT
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH HBAR
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);
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);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
ENDSTYLE
END

But when i do the reverse the fields i would get the graph but not in the order as expected.
GRAPH FILE H_EXTGP
SUM
E_CMPSLS
E_CMPTRN
ESPT
ESPU
EUPT
E_SLSTRN
E_SLSUNT
E_UNTTRN
ACROSS PER_NM
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH HBAR
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);
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);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setDepthRadius(0);
setDepthAngle(0);
ENDSTYLE
END

It would be great if i could get any suggestions on this.

Thanks,
Priya
August 19, 2013, 08:36 AM
Tewy
I'm not sure what you are trying to do here, the two sets of code you provide would result in totally different graphs.

From the error message I assume PER_NM is an alphanumeric field? If this is the case, and it is what you want shown on your ordinate axis, then the second piece of code it correct.

As to why you are not getting the order you expect, you'll have to be more specfic. What do you expect and what do you get?


WF 7.6.11
Output: HTML, PDF, Excel