Hi All, I have a chart for which Bars are plotted on Y1 axis and markers are plotted on Y2 axis.but on the chart i need both bars and markers to be aligned centrally.whats the graph function for that.i used the function setAlignMultiYBars(true),but no difference. here is my code against car table. GRAPH FILE CAR SUM LENGTH WIDTH HEIGHT WEIGHT RPM SEATS ACROSS COUNTRY ON GRAPH SET LOOKGRAPH VBRSTK2 ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO OFF ON GRAPH SET GRID ON ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHSTYLE * -*setAlignMultiYBars(true);
thanks rpThis message has been edited. Last edited by: Kerry,
webfocus 7.6.9 windows XP Excel
September 15, 2009, 03:54 PM
VLozovsky
I've tried your test procedure and it looks like the markers line up with the bars only on a single-axis stacked chart, but not on dual-axis.
You can open a case with Customer Support (1-800-736-6130) and I'll be happy to review it.
September 16, 2009, 01:55 AM
rp
I have achieved it by commenting ON GRAPH SET LOOKGRAPH VBRSTK2 and introducing setGraphType(44);
Now the code looks like: GRAPH FILE CAR SUM LENGTH WIDTH HEIGHT WEIGHT RPM SEATS ACROSS COUNTRY -*ON GRAPH SET LOOKGRAPH VBRSTK2 ON GRAPH SET GRAPHEDIT SERVER ON GRAPH SET BARNUMB OFF ON GRAPH SET 3D OFF ON GRAPH SET VZERO OFF ON GRAPH SET GRID ON ON GRAPH PCHOLD FORMAT PNG ON GRAPH SET GRAPHSTYLE * setGraphType(44); setO1LabelDisplay(true); setO1LabelRotate(0); setO1AxisSide(0); ....................... ......................
Thanks RP
webfocus 7.6.9 windows XP Excel
September 16, 2009, 10:59 AM
VLozovsky
RP, that was a good solution.
You can also use the following ON GRAPH SET LOOKGRAPH VLINSTK2, which is an equivalent of graph type 44 (vertical dual-axis stacked line chart).