Moving one of line series and scaling it

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
bairog
Newbie
Newbie
Posts: 72
Joined: Fri Jul 07, 2006 12:00 am
Location: Moscow, Russia
Contact:

Moving one of line series and scaling it

Post by bairog » Mon Jun 18, 2007 1:22 pm

I have a tchart component with several line series. Here is what I need to do with theese series.
First:
Moving series up and down using mouse(I mean that I press left mouse button above line and then drag it up or down. All other lines stay at their original positions)
Second:
Scaling line (I mean that I press right mouse button and move mouse up or down, so that line begin stretching or compressing on Y axis. All other lines remain the same without any changes)

It doesn't matter for me how Y coordinates will be represented on Y axis (I want to have Y axis without any labels).
So what do you recommend me to do?
Thank you.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 18, 2007 1:33 pm

Hi bairog,
First:
Moving series up and down using mouse(I mean that I press left mouse button above line and then drag it up or down. All other lines stay at their original positions)
You can do something as shown here.
Second:
Scaling line (I mean that I press right mouse button and move mouse up or down, so that line begin stretching or compressing on Y axis. All other lines remain the same without any changes)


I don't understand what do you exactly want to achieve here. Could you please give us some more information about the desired behaviour?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

bairog
Newbie
Newbie
Posts: 72
Joined: Fri Jul 07, 2006 12:00 am
Location: Moscow, Russia
Contact:

Post by bairog » Tue Jun 19, 2007 4:32 am

narcis wrote:I don't understand what do you exactly want to achieve here. Could you please give us some more information about the desired behaviour?

Thanks in advance.
Ok, for example I draw a line with such points: {(x1,y1),(x2,y2),(x3,y3),...}. Stretching I mean is redrawing that line (only that but not the others) with points {x1,K*y1),(x2,K*y2),(x3,K*y3),...} where K is for example 1.5, 2, 2.5, 3,....(it is increasing while mouse is moving up).
Compressing I mean is redrawing that line with points {x1,K*y1),(x2,K*y2),(x3,K*y3),...} where K is for example 2, 1.5, 1, 0.5....(it is decreasing while mouse is moving down). So it is inverse operation.

I've read this article
narcis wrote:You can do something as shown here.
and saw that my second problem is esily solving using that code with several changes. :)

So thanks for this neat feature!
Thank you.

Post Reply