Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Chart Axis Labels

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Chart Axis Labels
 Login/Join
 
Gold member
posted
Hey all,

I am creating some charts and I need to figure out how to move the X axis labels, further away from the zero minimum line.
I am doing a stacked bar with two Y measures, so some of my measures are right at zero, so the data labels and the X axis labels are overlapping each other and it looks like a hot mess.I have excluded zero labels from the chart as well, but a few of the results still overlap with the X axis labels.
Is there any way to put a buffer at the bottom of the zero minimum value before the X axis labels start?

Here is my code if it helps, I was hoping there was a trick in the setAxisAssignment lines of code...

TABLE FILE CHECK_FRAUD
PRINT
CHECK_FRAUD.CHECK_FRAUD.MONTH1
CHECK_FRAUD.CHECK_FRAUD.YEAR1
CHECK_FRAUD.CHECK_FRAUD.POTENTIAL_LOSS
CHECK_FRAUD.CHECK_FRAUD.PREVENTED_LOSS
CHECK_FRAUD.CHECK_FRAUD.ACTUAL_LOSS
CHECK_FRAUD.CHECK_FRAUD.RECOVERED_FUNDS
CHECK_FRAUD.CHECK_FRAUD.__OF_CASES
CHECK_FRAUD.CHECK_FRAUD.__OF_LOSS_PREVENTED
BY LOWEST CHECK_FRAUD.CHECK_FRAUD.MONTH_SORT_ORDER
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS NewAcctFraud
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/warm.sty,
$
ENDSTYLE
END
-*IA_GRAPH_BEGIN
-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+PFJvb3QgcmVsZWFzZT0iOC4yLjAuMSIgdmVyc2lvbj0iMS4yIj4NCiAgICA8T2JqZWN0IG9iamVjdElkPSJUYWJsZUNoYXJ0XzEiPg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iTGlua2VkU29ydHMiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciLz4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9ImNvbXBvbmVudEN1c3RvbVRpdGxlIiB0eXBlPSJqYXZhLmxhbmcuQm9vbGVhbiI+ZmFsc2U8L1Byb3BlcnR5Pg0KICAgIDwvT2JqZWN0Pg0KICAgIDxPYmplY3Qgb2JqZWN0SWQ9IkdMT0JBTCI+DQogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJTYW1wbGVEYXRhIiB0eXBlPSJqYXZhLmxhbmcuQm9vbGVhbiI+ZmFsc2U8L1Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iR2xvYmFsUmVjb3JkTGltaXQiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciPjUwMDwvUHJvcGVydHk+DQogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJHbG9iYWxSdW5SZWNvcmRMaW1pdCIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyI+MDwvUHJvcGVydHk+DQogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJHbG9iYWxPcHRpbWl6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nRyeT4NCiAgICAgICAgICAgIDxFbnRyeSBrZXk9ImRpc3BsYXlGb3JtYXRUYWJJbmZvTWluaVByZWZlcmVuY2UiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciPnRydWU8L0VudHJ5Pg0KICAgICAgICA8L1Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iY2FzY2FkZU5hbWVzIiB0eXBlPSJNYXAiLz4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9Ik1hc3Rlcl9GaWxlcyIgdHlwZT0iU2V0Ij4NCiAgICAgICAgICAgIDxFbnRyeSB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIj5OZXdBY2N0RnJhdWQ8L0VudHJ5Pg0KICAgICAgICA8L1Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0ibWV0YWRhdGFWaWV3QXMiIHR5cGU9Ik1hcCI+DQogICAgICAgICAgICA8RW50cnkga2V5PSJOZXdBY2N0RnJhdWQiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciPk1ldGFEYXRhVHJlZS5WSUVXX0RJTVM8L0VudHJ5Pg0KICAgICAgICA8L1Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iZW5hYmxlUHJldmlldyIgdHlwZT0iamF2YS5sYW5nLkJvb2xlYW4iPnRydWU8L1Byb3BlcnR5Pg0KICAgIDwvT2JqZWN0Pg0KPC9Sb290Pg0K
-*Do not delete or modify the comments above
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET HTMLENCODE=ON
SET ARGRAPHENGINE=JSCHART
SET EMBEDHEADING=ON
SET GRAPHDEFAULT=OFF
-DEFAULTH &WF_STYLE_UNITS='PIXELS';
-DEFAULTH &WF_STYLE_HEIGHT='405.0';
-DEFAULTH &WF_STYLE_WIDTH='770.0';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
GRAPH FILE NewAcctFraud
-* Created by Info Assist for Graph
SUM NEWACCTFRAUD.NEWACCTF.ACTUAL_LOSS
NEWACCTFRAUD.NEWACCTF.POTENTIAL_LOSS
NEWACCTFRAUD.NEWACCTF.__OF_CASES AS '# OF CASES'
BY NEWACCTFRAUD.NEWACCTF.MONTH_SORT_ORDER NOPRINT
BY NEWACCTFRAUD.NEWACCTF.YEAR1
BY NEWACCTFRAUD.NEWACCTF.MONTH1
WHERE NEWACCTFRAUD.NEWACCTF.MONTH1 NE 'Totals';
WHERE NEWACCTFRAUD.NEWACCTF.__OF_CASES GT 1;
HEADING
"Check Fraud - Monthly"
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET AUTOFIT ON
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 3
ON GRAPH SET LOOKGRAPH VBRSTK2
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setPlace(true);
setCurveFitEquationDisplay(false);
*END
INCLUDE=IBFS:/WFC/Repository/STCU_Shared_Content/Style_Sheets/angular.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
TYPE=HEADING, JUSTIFY=CENTER, FONT='ARIAL', SIZE=12, COLOR=RGB(128 128 128), STYLE=BOLD, $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
setSeriesType(3,2);
setSeriesType(2,2);
setLegendPosition(1);
setFillColor(getLegendArea(),new Color(255,255,255));
setTextString(getO1Title(),"Check Fraud - Monthly");
setFontSizeAbsolute(getO1Title(), true);
setFontSizeInPoints(getO1Title(), 12);
setPlaceResize(getO1Title(), 0);
setFillColor(getDataTextStackedTotalOnTop(),new Color(255,255,255));
setFillColor(getDataText(),new Color(0,0,0));
setDataTextPosition(2);
setTextFormatPreset(getDataText(),0);
setDisplay(getO1Title(),false);
setLineBasicStrokeType(getY1MajorGrid(),13);
setAltFmtFrameNumColors(getY1AltFmtFrame(),5);
setBorderColor(getY2MajorGrid(),new Color(192,192,192));
setFillColor(getY2MajorGrid(),new Color(192,192,192));
setLineBasicStrokeType(getY2MajorGrid(),13);
setAltFmtFrameNumColors(getY2AltFmtFrame(),5);
setDisplay(getO1MajorGrid(),false);
setAltFmtFrameNumColors(getO1AltFmtFrame(),5);
setDisplay(getDataText(1), true);
setDataTextDisplay(true);
setPieFeelerTextDisplay(1);
setStackedDataValueSum(false);
setAxisAssignment( $0, 0);
setAxisAssignment( $1, 0);
setAxisAssignment( $2, 1);
setZeroValueDataTextStackedTotalOnTopDisplay(false);
*GRAPH_JS_FINAL
"xaxis": {
"title": {
"text": "Check Fraud - Monthly"
}
},
"pieProperties": {
"holeSize": "0%"
},
"blaProperties": {
"seriesLayout": "stacked"
},
"agnosticSettings": {
"dual": true,
"chartTypeFullName": "Bar_Stacked_Dual_Axis"
}
*END
ENDSTYLE
END
-RUN

-*IA_GRAPH_FINISH

Thanks in advance!

This message has been edited. Last edited by: FP Mod Chuck,


Version: 8.2.03M, OS/Platform: Windows 7 & 10, Output: Excel, pdf, html
 
Posts: 63 | Location: Liberty Lake, WA - USA | Registered: June 23, 2016Report This Post
Virtuoso
posted Hide Post
Larissa

Since no one has chimed in maybe you should open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Chart Axis Labels

Copyright © 1996-2020 Information Builders