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
Right Acis Appears on the left?
Hi Andy,
yes, it's because you assign 100 for the PositionPercent, change this line by the following :
hr = m_pRightAxis->put_PositionPercent(0);
yes, it's because you assign 100 for the PositionPercent, change this line by the following :
hr = m_pRightAxis->put_PositionPercent(0);
Pep Jorge
http://support.steema.com
http://support.steema.com