Right Acis Appears on the left?

TeeChart for ActiveX, COM and ASP
Post Reply
Andy
Newbie
Newbie
Posts: 2
Joined: Mon Feb 09, 2004 5:00 am

Right Acis Appears on the left?

Post by Andy » Tue Feb 10, 2004 5:55 pm

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

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Feb 13, 2004 9:51 am

Hi Andy,

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

hr = m_pRightAxis->put_PositionPercent(0);

Andy
Newbie
Newbie
Posts: 2
Joined: Mon Feb 09, 2004 5:00 am

Post by Andy » Fri Feb 13, 2004 6:53 pm

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

Post Reply