Focal Point
[CLOSED] Will setCurveFitType work for multiple y-axis

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

September 01, 2009, 01:52 AM
rp
[CLOSED] Will setCurveFitType work for multiple y-axis
Hi All
I have a chart for which Bars are plotted on Y1 axis and markers are plotted on Y2 axis.i need to get a linear curve fit for
markers.when i tried with only one y axis i'm getting linearcurve,but on Y2 axis it dont works
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);

setMarkerSizeDefault(50);
setLineWidth(getSeries(4),0);
setLineWidth(getSeries(5),2);
setMarkerShape(getSeries(4),getMarkerShape(getSeries(5)));
setMarkerDisplay(true);
setUseSeriesShapes(true);
setConnectLineMarkers(false);
setConnectScatterMarkers(false);

setO1LabelDisplay(true);
setO1LabelRotate(0);
setO1AxisSide(0);
setFillMissingData(0);
setO1MajorGridDisplay(false);
setO1MinorGridDisplay(false);
setAxisAssignment(0,0);
setSeriesType(0,1);
setAxisAssignment(1,0);
setSeriesType(1,1);
setAxisAssignment(2,0);
setSeriesType(2,1);
setAxisAssignment(3,0);
setSeriesType(3,1);
setAxisAssignment(4,1);
setSeriesType(4,2);
setAxisAssignment(5,1);
setSeriesType(5,2);
setCurveFitType(5,1);
setY1LabelDisplay(true);
setY1AxisSide(0);
setY1MajorGridDisplay(true);
setY1MajorGridStyle(0);
setY1MinorGridDisplay(false);
setTextFormatPreset(getY1Label(),-1);
setTextFormatPattern(getY1Label(),"#.##");
setY2LabelDisplay(true);
setY2AxisSide(1);
setY2MajorGridDisplay(false);
setY2MajorGridStyle(0);
setY2MinorGridDisplay(false);
setTextFormatPreset(getY2Label(),-1);
setTextFormatPattern(getY2Label(),"#.##");
setPieFeelerTextDisplay(1);
setPieLabelDisplay(0);
setTextFormatPreset(getPieSliceLabel(),1);
setLegendDisplay(true);
setFontSizeAbsolute(getY1Title(),true);
setFontSizeAbsolute(getY1Label(),true);
setFontSizeAbsolute(getY2Title(),true);
setFontSizeAbsolute(getY2Label(),true);
setFontSizeAbsolute(getO1Title(),true);
setPlace(true);


thanks
rp

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


webfocus 7.6.9 windows XP Excel
September 13, 2009, 07:56 AM
rp
can anyone help please .....
is it because of ON GRAPH SET LOOKGRAPH VBRSTK2??(i suspect so )
is there a way to overcome this

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


webfocus 7.6.9 windows XP Excel
September 14, 2009, 04:10 AM
<JG>
rp I suspect that as you have not had a response in nearly 2 weeks that no one has a clue.

Best option would be to open a case with IB and get their graph specialist to look at it.

The only possible solution that I can come up with is to overlay the graphs.

Take a look at this post.

[SOLVED] Merging 2 different graph types

In your case you need two charts 1 with a axis on the left and none on the right
and the other with the axis on the right and none on the left.

Might work for you.
September 15, 2009, 03:31 PM
VLozovsky
I reviewed your request and it appears there is a limitation on drawing curve fit equations on stacked chart types.

What you may be able to do is calculate a field (DEFINE or COMPUTE) and then draw that as a line segment on the stacked chart. You can also choose whether you would like to display this as absolute or part of the stacked data.