Focal Point
[CLOSED] VBRSTK2 Graph issue

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

July 20, 2012, 03:29 PM
Neenz
[CLOSED] VBRSTK2 Graph issue
I am having a stacked graph - VBRSTK2. I have 2 bars and 2 lines in the graph. My problem is that I want only the bars to be stacked, but the lines are also getting stacked. Is there a graph type where I can have only the bar stacked and not the line stacked.

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


WF: 7.6.8
OS/Platform: Windows, Unix
July 30, 2012, 11:06 AM
Kerry
Hi Neenz,

The following code may be of help:

Bar and line graphs can be combined from the Graph Wizard. The Field Options tab allows you to select a field and then click a radio button that will indicate Bar, Line or Area for the display type for that particular field.

The code looks like the following:

setSeriesType(0,1);
setAxisAssignment(1,0);
setSeriesType(1,1);
setAxisAssignment(2,0);
setSeriesType(2,2);

setSeriesType(0,1) --- 0 is the first data field and 1 indicates a bar display
setSeriesType(2,2) --- 2 is the third data field and 2 indicates a line display


Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
February 28, 2013, 04:13 PM
WebFocus User 52
I've tried this but it will still give you stacked lines. is there a way to have to a stacked chart and a line chart on the same graph?
March 11, 2014, 11:08 AM
WFDevConsultant
Did you find the solution for this issue? Please share it with us.


8.2.06
Windows, All Formats
October 27, 2016, 10:52 AM
Melanie Murphy
Pinging to see if anyone has found a solution. Tried hiding the lower level lines on the stack and just displaying the top one... that doesn't work either as the lower level lines are then excluded from the total.

This is frustrating. Seems like such a simple thing.


WebFOCUS 8.1.05,
Windows 7,
All output types
October 27, 2016, 11:00 AM
Melanie Murphy
Well, figured it out right after i posted. set the lower level lines on the stacks transparency to 100%

Now on to figure out how to suppress them in the legend.


WebFOCUS 8.1.05,
Windows 7,
All output types