Right Acis Appears on the left?
Posted: 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
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