Dragging a 2D Line Plot
-
- Newbie
- Posts: 35
- Joined: Wed Dec 12, 2007 12:00 am
Dragging a 2D Line Plot
After plotting a 2D line on a chart, is it possible to drag the 2d line in either horizontal or vertical direction for repositioning?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi marathoner,
Is it a constant line? If so the best solution would be using a ColorLine tool. Otherwise you can do something like what's suggested here. This is a TeeChart for .NET example but the same should be available in the ActiveX version.
Hope this helps!
Is it a constant line? If so the best solution would be using a ColorLine tool. Otherwise you can do something like what's suggested here. This is a TeeChart for .NET example but the same should be available in the ActiveX version.
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 35
- Joined: Wed Dec 12, 2007 12:00 am
-
- Newbie
- Posts: 35
- Joined: Wed Dec 12, 2007 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi marathoner,
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);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |