Dragging a 2D Line Plot
Posted: Thu Mar 13, 2008 1:14 pm
After plotting a 2D line on a chart, is it possible to drag the 2d line in either horizontal or vertical direction for repositioning?
Steema Software - Customer Support Forums
http://216.92.243.79/support/
You can do this:How do I choose the ColorLine tool?
Code: Select all
m_Chart1.GetTools().Add(tcColorLine);
CAxis & axis = m_Chart1.GetAxis().GetLeft();
VARIANT iAxis;
iAxis.vt = VT_DISPATCH;
iAxis.pdispVal = axis;
m_Chart1.GetTools().GetItems(0).GetAsColorLine().SetAxis(iAxis);
m_Chart1.GetTools().GetItems(0).GetAsColorLine().SetValue(500);