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     [SOLVED] Advanced Graph Assist setLineWidth does not work.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Advanced Graph Assist setLineWidth does not work.
 Login/Join
 
Member
posted
Hello,

I built a Vertical Dual-Axis Clustered Bar chart. The first series is bars, the second series is a line. I want to make the line thinner, but setLineWidth() does not seem to work (I tried several numbers between 1 and 20 and the line never appeared to change).

I could not set the line width through the GUI tool, it ignored my change. So I added the api call to the fex in text view.

I also setSeriesLineWidthDefault(1), which had no affect either.

Here is my fex. Any suggestions would be greatly appreciated.

GRAPH FILE FIN_INVOICE_DETAILS
-* Created by Advanced Graph Assistant
SUM COMPUTE Millions/D12.2=FIN_INVOICE_DETAILS.FIN_INVOICE_DETAILS.AMOUNT / 1000000 ; AS 'Total $'
CNT.FIN_INVOICE_DETAILS.FIN_INVOICE_DETAILS.TYP AS '# of Inv'
BY FIN_INVOICE_DETAILS.FIN_INVOICE_DETAILS.TYP
WHERE FIN_INVOICE_DETAILS.FIN_INVOICE_DETAILS.RECORD_DT EQ '&RECORD_DT' AND FIN_INVOICE_DETAILS.FIN_INVOICE_DETAILS.TYP EQ 'CH' OR 'HD' AND FIN_INVOICE_DETAILS.FIN_INVOICE_DETAILS.BUSA EQ 'TTX';
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR2AX
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("/images/tdg/template/IBISouthWestern.txt");
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);
setDepthRadius(5);
setTransparentBorderColor(getChartBackground(),true);
setPlace(true);
setSeriesType(getSeries(1),2);
setMarkerShape(getSeries(1),1);
setMarkerSize(getSeries(1),60);
setSeriesLineWidthDefault(1);
setLineWidth(getSeries(1),1);
setLegendPosition(4);
setFillColor(getSeries(1),new Color(94,156,192));
setTextFormatPreset(getY2Label(),0);
setTextFormatPreset(getY1Label(),6);
setDisplay(getO1Label(),true);
setTextString(getO1Title(),"");
setLineBasicStrokeType(getSeries(1),0);
ENDSTYLE
END

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS release 7.7.03
WinNT 6.0 64bit
 
Posts: 10 | Registered: December 23, 2010Report This Post
Master
posted Hide Post
Hi,

Try below code.
Changes:
setDepthRadius(0);
-*setTransparentBorderColor(getSeries(1),true);
setSeriesBorderColor(1,new Color(255,255,255));

GRAPH FILE CAR
SUM DEALER_COST
RETAIL_COST
SALES
SALES
BY COUNTRY
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR2AX
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("/images/tdg/template/IBISouthWestern.txt");
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);
setDepthRadius(0);
setTransparentBorderColor(getChartBackground(),true);

setSeriesBorderColor(1,new Color(255,255,255));

setSeriesType(getSeries(1),2);
setMarkerShape(getSeries(1),1);
setMarkerSize(getSeries(1),60);
setSeriesLineWidthDefault(1);
setLineWidth(getSeries(1),1);
setLegendPosition(4);
setFillColor(getSeries(1),new Color(94,156,192));
setTextFormatPreset(getY2Label(),0);
setTextFormatPreset(getY1Label(),6);
setDisplay(getO1Label(),true);
setTextString(getO1Title(),"");
setLineBasicStrokeType(getSeries(1),0);
setPlace(true);
ENDSTYLE
END



Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
Ram,

Those changes worked! The line is thinner now.

Thank you very much.

Jim


WebFOCUS release 7.7.03
WinNT 6.0 64bit
 
Posts: 10 | Registered: December 23, 2010Report 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     [SOLVED] Advanced Graph Assist setLineWidth does not work.

Copyright © 1996-2020 Information Builders