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] reduce line thickness in line chart

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] reduce line thickness in line chart
 Login/Join
 
Gold member
posted
i am trying to reduce the thickness of line in line chart using the below the command. but it only goes down to 2 and not less than that. i am not satisfied with thickness of 2 as my requirement of line is less than that. if i try any number less that, gives me a blank chart without a line.

setSeriesLineWidthDefault(2);

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


WebFOCUS 8
Windows, All Outputs
 
Posts: 71 | Registered: January 23, 2018Report This Post
Gold member
posted Hide Post
sample code :
------------

 -* Default Mode: ResourceLayout
SET HTMLARCHIVE=ON
*-HOLD_SOURCE
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='chart1', TEXT='chart1', TOC-LEVEL=2, POSITION=(1.646 2.083), DIMENSION=(4.271 2.083), COMPONENT-TYPE=GRAPH,  ARREPORTSIZE=DIMENSION, METADATA='left: 1.646in; top: 2.083in; width: 4.271in; height: 2.083in; position: absolute; z-index: 1;', $
END
SET COMPONENT='chart1'
-*component_type chart

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET HTMLENCODE=ON
SET ARGRAPHENGINE=JSCHART
SET EMBEDHEADING=ON
SET GRAPHDEFAULT=OFF
SET GRID=ON

GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.BODY.DEALER_COST
BY CAR.COMP.CAR
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET VZERO OFF
ON GRAPH SET UNITS INCHES
ON GRAPH SET HAXIS 6
ON GRAPH SET VAXIS 2
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setUseSeriesShapes(true);
setMarkerSizeDefault(25);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
*GRAPH_SCRIPT


setSeriesLineWidthDefault(2);  -****to control line thickness of line chart



setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getY1MajorGrid(),true);
setDisplay(getO1MajorGrid(),true);
-*setFontName(getY1Label(),"RALEWAY-LIGHT");
setFontSizeAbsolute(getY1Label(), true);
setFontSizeInPoints(getY1Label(), 7);
setPlaceResize(getY1Label(), 0);
setFillColor(getY1Label(),new Color(18,48,76));
setBorderColor(getY1MajorGrid(),new Color(208,244,219));
setFillColor(getY1MajorGrid(),new Color(208,244,219));
-*setFontName(getO1Label(),"RALEWAY-LIGHT");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 7);
setPlaceResize(getO1Label(), 0);
setFillColor(getO1Label(),new Color(18,48,76));
setBorderColor(getO1MajorGrid(),new Color(208,244,219));
setFillColor(getO1MajorGrid(),new Color(208,244,219));
setFillColor(getSeries(0),new Color(36,171,209));
setTransparentBorderColor(getSeries(0), true);
*END
ENDSTYLE
END
-RUN

COMPOUND END
  

This message has been edited. Last edited by: vinodh,


WebFOCUS 8
Windows, All Outputs
 
Posts: 71 | Registered: January 23, 2018Report This Post
Platinum Member
posted Hide Post
I made a few changes to your code which I have indicated with comments. This has a line thickness of .5 but I was able to get as thin as .1 and still see it.
 
SET HTMLARCHIVE=ON
*-HOLD_SOURCE
COMPOUND LAYOUT PCHOLD FORMAT PDF
UNITS=IN, $
SECTION=section1, LAYOUT=ON, METADATA='prop_with_names^Margins_Left=0.5^Margins_Top=0.5^Margins_Right=0.5^Margins_Bottom=0.5^thumbnailscale=4', MERGE=OFF, ORIENTATION=LANDSCAPE, PAGESIZE=Letter, SHOW_GLOBALFILTER=OFF, $
PAGELAYOUT=1, NAME='Page layout 1', text='Page layout 1', TOC-LEVEL=1, BOTTOMMARGIN=0.5, TOPMARGIN=0.5, METADATA='BOTTOMMARGIN=0.5,TOPMARGIN=0.5,LEFTMARGIN=0,RIGHTMARGIN=0,', $
COMPONENT='chart1', TEXT='chart1', TOC-LEVEL=2, POSITION=(1.646 2.083), DIMENSION=(4.271 2.083), COMPONENT-TYPE=GRAPH,  ARREPORTSIZE=DIMENSION, METADATA='left: 1.646in; top: 2.083in; width: 4.271in; height: 2.083in; position: absolute; z-index: 1;', $
END
SET COMPONENT='chart1'
-*component_type chart

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET HTMLENCODE=ON
SET ARGRAPHENGINE=JSCHART
SET EMBEDHEADING=ON
SET GRAPHDEFAULT=OFF
SET GRID=ON

GRAPH FILE car
-* Created by Info Assist for Graph
SUM CAR.BODY.DEALER_COST
BY CAR.COMP.CAR
ON GRAPH PCHOLD FORMAT PDF
ON GRAPH SET VZERO OFF
ON GRAPH SET UNITS INCHES
ON GRAPH SET HAXIS 6
ON GRAPH SET VAXIS 2
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
-*--------------------------------------- Changed from VLINE to LINE
ON GRAPH SET LOOKGRAPH LINE                                    
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setUseSeriesShapes(true);
setMarkerSizeDefault(25);
*END
INCLUDE=Warm.sty,$
-*--------------------------------------- Added bucket references. 
TYPE=DATA, COLUMN=N1, BUCKET=x-axis, $                        
TYPE=DATA, COLUMN=N2, BUCKET=y-axis, $
*GRAPH_SCRIPT
-*--------------------------------------- Changed to use this Line Width statement. 
setLineWidth(getSeries(0),.5);                                
setReportParsingErrors(false);
setSelectionEnableMove(false);
setDisplay(getY1MajorGrid(),true);
setDisplay(getO1MajorGrid(),true);
-*setFontName(getY1Label(),"RALEWAY-LIGHT");
setFontSizeAbsolute(getY1Label(), true);
setFontSizeInPoints(getY1Label(), 7);
setPlaceResize(getY1Label(), 0);
setFillColor(getY1Label(),new Color(18,48,76));
setBorderColor(getY1MajorGrid(),new Color(208,244,219));
setFillColor(getY1MajorGrid(),new Color(208,244,219));
-*setFontName(getO1Label(),"RALEWAY-LIGHT");
setFontSizeAbsolute(getO1Label(), true);
setFontSizeInPoints(getO1Label(), 7);
setPlaceResize(getO1Label(), 0);
setFillColor(getO1Label(),new Color(18,48,76));
setBorderColor(getO1MajorGrid(),new Color(208,244,219));
setFillColor(getO1MajorGrid(),new Color(208,244,219));
setFillColor(getSeries(0),new Color(36,171,209));
setTransparentBorderColor(getSeries(0), true);
*END
ENDSTYLE
END
-RUN

COMPOUND END
 


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 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] reduce line thickness in line chart

Copyright © 1996-2020 Information Builders