Focal Point
[CLOSED]Getting a distorted line graph on taking multiple fields on Y axis

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

December 10, 2015, 08:42 AM
Kartik Katyal
[CLOSED]Getting a distorted line graph on taking multiple fields on Y axis
The graph comes up fine with just the first two computed fields but creates another X ad Y axis at the bottom when using all the fields. Please suggest.

-DEFAULTH &MARKET = 'US'
-DEFAULTH &APPLICATIONCODE = 'NWP'
-DEFAULTH &BUSINESSUNIT = 'TSC'
-DEFAULTH &STARTDATE = '12/01/2015'
-DEFAULTH &ENDDATE = '12/02/2015'
-DEFAULTH &MENU = '_FOC_NULL'
-DEFAULTH &OPTION = '_FOC_NULL'
-DEFAULTH &FMT = 'HTML'
-DEFAULTH &TFN = '_FOC_NULL'

SET LOOKGRAPH = LINE
SET HAXIS=800, VAXIS=400

GRAPH FILE VRMIS_IDVERIFICATION_SUMMARY_DAILY
SUM
COMPUTE ACCOUNT_CAPTURED/D10.2% = (ACCOUNT_CAPTURED/ INCOMING_CALLS) * 100 ; AS 'VR Validated Accounts'
COMPUTE ANI_CAPTURED/D10.2% = (ANI_CAPTURED/ INCOMING_CALLS) *100; AS 'ANI Match'
-*COMPUTE AUTHENTICATED/D10.2% = (AUTHENTICATED/ INCOMING_CALLS) * 100; AS 'Authenticated'
-*COMPUTE COMPLETED/D10.2% = (COMPLETED/ INCOMING_CALLS) * 100; AS 'COMPLETED'
-*COMPUTE DISCONNECT/D10.2% = (DISCONNECT/ INCOMING_CALLS) * 100; AS 'DISCONNECTS'
-*COMPUTE TRANSFER/D10.2% = (TRANSFER/ INCOMING_CALLS) * 100; AS 'TRANSFERS'
ACROSS LOCAL_GMT_DATE_TIME AS 'INTERVAL'
WHERE CALLINTERVAL GE '&STARTDATE';
WHERE CALLINTERVAL LE '&ENDDATE';
WHERE COUNTRY_ID EQ '&MARKET';
WHERE BUSINESS_UNIT EQ '&BUSINESSUNIT';
WHERE TFN EQ '&TFN';



ON GRAPH SET GRMERGE ON
ON GRAPH SET GRAPHSTYLE *
ON GRAPH PCHOLD FORMAT JPG
ON GRAPH SET 3D OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET UNITS PIXELS
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



setReportParsingErrors(false);
setSelectionEnableMove(false);
setDepthRadius(0); // Turns off 2 D
setDataLineThickness(2);
setMarkerDisplay(true);
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);
setTitleString("Call Summary Trending"); // sets the title in the graph frame
setSeriesType(getSeries(1),2);
setY1ScaleMinAuto(false); // fixes the y axis scale
setY1ScaleMaxAuto(false); // fixes the y axis scale
setScaleMin(getY1Axis(),0); // sets the y axis min scale to 0
setScaleMax(getY1Axis(),100); // sets the y axis max scale to 100
setY1LabelFormat(-2); // Set Y1 Axis Label Format to Custom
setY1LabelFormatPattern("0.00%"); // Set Y1 Axis Label Format to number %
setFillColor(getChartBackground(), new Color(233,244,248)); // Change chart background fill color.
setFillColor(getFrame(),new Color(233,244,248)); // Change chart frame background fill color.
setTextRotation(getO1Label(),0); // X axis dates text rotation

-* These commands are specifically applied to the graph legend styling.
setFillColor(getLegendText(),new Color(25,25,112));
setFontSize(getLegendText(),10);
setFontSizeAbsolute(getLegendText(),true);
setPlaceResize(getLegendText(),0);
setTextRotation(getLegendText(),0);
setPlaceRotate(getLegendText(),0);
setTextJustHoriz(getLegendText(),1);
setPlaceAlign(getLegendText(),0);
setTextWrap(getLegendText(),true);
setPlaceWordWrap(getLegendText(),0);
setFillColor(getSeries(1),new Color(0, 0 ,255));
setFillColor(getSeries(0),new Color(178 ,34 ,34));

ENDSTYLE
END

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8010,8204
Windows
December 17, 2015, 08:44 AM
Tamra
HI Kartik,

This is a friendly follow-up regarding your Graph issue.

Can you update your profile with the specific version of WebFOCUS? It will help with determining the best response.

Did you create this report using the GUI tool and then apply additional style code?

Try commenting some of the style commands and rerunning the graph.


Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator
Information Builders Inc.
* Summit 2016 – June 13-17 in Reno, Nevada  - http://www.informationbuilders.com/events/summit


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5