Update a annotation after a color line has been dragged

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
EdDressel
Newbie
Newbie
Posts: 32
Joined: Mon Dec 10, 2018 12:00 am

Update a annotation after a color line has been dragged

Post by EdDressel » Fri Feb 01, 2019 1:13 am

I need to update the content of an annotation with the Y value of a series after a color line has been moved. The color line is associated with the bottom (X) axis.

I can get the X Value fairly simple:

srsRegUsers.CalcPosValue(crttlLine.Value)

But how do I get the Y value for the color line's location?

Thank you,

Ed Dressel
Thanks,

Ed Dressel

EdDressel
Newbie
Newbie
Posts: 32
Joined: Mon Dec 10, 2018 12:00 am

Re: Update a annotation after a color line has been dragged

Post by EdDressel » Thu Feb 07, 2019 3:50 pm

I have attached a demo of what I am needing--I don't know what to use for the Y-value.
Attachments
Color Line Annotation.zip
(1.6 KiB) Downloaded 761 times
Thanks,

Ed Dressel

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Update a annotation after a color line has been dragged

Post by Yeray » Mon Feb 11, 2019 8:51 am

Hello,

You should calculate the Line Interpolation as shown in the example here.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply