Focal Point
[SOLVED] reduce line thickness in line chart

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

January 16, 2020, 11:38 AM
vinodh
[SOLVED] reduce line thickness in line chart
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
January 16, 2020, 01:25 PM
vinodh
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
January 17, 2020, 09:44 AM
dbeagan
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
 



WF 8.2.06
Win10 / IE11
AHTML EXL2K PDF