Focal Point
[SOLVED] InfoAssist Bar and Line Chart - Line Style

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

November 19, 2018, 05:36 PM
Doug
[SOLVED] InfoAssist Bar and Line Chart - Line Style
Is there a way in InfoAssist 8204 to style the line, Vertical Axis 2, as dotted (or something other than solid) while Vertical Axis 1 is a Bar?

Here's a totally bogus chart that illustrates my point. That point is that I want the green line to be dotted. This was created entirely in IA.
ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
-DEFAULTH &WF_HTMLENCODE=OFF;
SET HTMLENCODE=&WF_HTMLENCODE

SET ARGRAPHENGINE=JSCHART
-DEFAULTH &WF_EMPTYREPORT=ON;
SET EMPTYREPORT=&WF_EMPTYREPORT

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 baseapp/car
-* Created by Info Assist for Graph
SUM CAR.BODY.DEALER_COST
CAR.BODY.RETAIL_COST
BY CAR.COMP.CAR
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET UNITS &WF_STYLE_UNITS
ON GRAPH SET HAXIS &WF_STYLE_WIDTH
ON GRAPH SET VAXIS &WF_STYLE_HEIGHT
ON GRAPH SET LOOKGRAPH BAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT

setPieDepth(0);
setPieTilt(0);
setDepthRadius(0); 
setCurveFitEquationDisplay(false); 
setPlace(true); 

*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, ORIENTATION=LANDSCAPE, $
TYPE=DATA, COLUMN=N1, BUCKET=x-axis, $
TYPE=DATA, COLUMN=N2, BUCKET=y-axis(1), $
TYPE=DATA, COLUMN=N3, BUCKET=y-axis(2), $
*GRAPH_SCRIPT

setReportParsingErrors(false);
setSelectionEnableMove(false);
setTransparentBorderColor(getSeries(*), true);
setSeriesType(0,1);
setSeriesType(1,2);
setLineBasicStrokeType(getY2AxisLine(),12);
setFillColor(getY1ZeroLine(),new Color(192,192,192));
setLineBasicStrokeType(getY1ZeroLine(),16);
*GRAPH_JS_FINAL
"pieProperties": {
    "holeSize": "0%"
},
"riserBevel": "bevel",
"agnosticSettings": {
    "dual": true,
    "chartTypeFullName": "Bar_Clustered_Dual_Axis"
}

*END
ENDSTYLE
END

-RUN
Notice the setLineBasicStrokeType lines.

Thanks, Doug

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
November 20, 2018, 03:21 AM
Tony A
Hi Doug,

Click on the Format tab and then open the Labels icon.

This will give you Axes and Legend options.

Click on Axes icon, hover over Vertical Axis and then select More Vertical Axis 2 Options.

Select Advanced and then the Line style should be available to change under the check box for Show Axis Line.

Good luck!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 20, 2018, 09:44 AM
Doug
Thanks Tony,

That does change the Axis line. I need to change the Line Chart Line (Orange in the below image) to 'Many Dots' (inset in blue square) as is available for the axis.


Link to Image

November 20, 2018, 12:02 PM
Tony A
quote:
That does change the Axis line.

Well, that's what you asked for Wink Razzer

I'm not sure that the line style for a data series is exposed within the GUI (but happy to be corrected).


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 20, 2018, 12:53 PM
Doug
quote:
Well, that's what you asked for Wink Razzer
It's all about the proper nomenclature, isn't it Frowner ? I did get what I did ask for, didn't I?
What is the proper name for that Orange Line?
November 21, 2018, 06:51 AM
Tony A
Series line style?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 26, 2018, 03:25 PM
Doug
quote:
Series line style?

The 'Series line style' doesn't have the 'line style' option, just: colors, border, and effect.
Reference: IA Help '?' / InfoAssist+ / Creating and Customizing Charts / Formatting a Series / Format Series Dialog Box
 
November 27, 2018, 02:58 AM
Tony A
quote:
I'm not sure that the line style for a data series is exposed within the GUI (but happy to be corrected).

Hence my earlier comment.

My reply of "Series line style" was in response to your question "What is the proper name for that Orange line?".

Taking your question too literally Doug and probably not being wordy enough in my responses Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
November 29, 2018, 09:37 AM
Doug
Thanks again Tony,

That wasn't 'too literally', just very specific and accurately interpreted. 'Series line style' is correct. Smiler