Page 1 of 1

Right Acis Appears on the left?

Posted: Tue Feb 10, 2004 5:55 pm
by 9080795
I am try to create a chart with two axis, one on the left, one on the right.

However when I use IAxes to get the right hand one, it appears on the left.

the code I am using is as follows

HRESULT hr = m_pAxes->get_Right(&m_pRightAxis);
hr = m_pRightAxis->put_PositionPercent(100);
hr = m_pRightAxis->put_Otherside(VARIANT_TRUE);
hr = m_pRightAxis->put_Visible(VARIANT_TRUE);
m_pSeries->put_VerticalAxis(aRightAxis);

Can anyone help?

Many thanks.

Andy

Posted: Fri Feb 13, 2004 9:51 am
by Pep
Hi Andy,

yes, it's because you assign 100 for the PositionPercent, change this line by the following :

hr = m_pRightAxis->put_PositionPercent(0);

Posted: Fri Feb 13, 2004 6:53 pm
by 9080795
Pep wrote:Hi Andy,

yes, it's because you assign 100 for the PositionPercent, change this line by the following :

hr = m_pRightAxis->put_PositionPercent(0);
That seems to have worked, many thanks.

Andy