Fixing Error Bars

TeeChart for ActiveX, COM and ASP
Post Reply
CP
Newbie
Newbie
Posts: 3
Joined: Fri Nov 15, 2002 12:00 am
Location: UK

Fixing Error Bars

Post by CP » Tue Aug 10, 2004 3:10 pm

Hello All,

I've created a points chart that when a user clicks on a point it returns the result for that point and draws and error line from that point to a line of best-fit.

My Problem is everytime a click is made on the chart the error bar moves to the left so after two or three clicks the line is not drawn from the point itself.

Is there a way to make sure the line always goes from the centre of the point to the line of best-fit ?

Hope this makes sense,

Thanks in advance,

Craig

:)

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Aug 11, 2004 12:56 am

Hi Craig,
Is there a way to make sure the line always goes from the centre of the point to the line of best-fit ?
yes, you can draw the line from the centre of the point using the CalcXPosValue() method ( i.e. TChart1.Axis.Bottom.CalcXPosValue(1))

CP
Newbie
Newbie
Posts: 3
Joined: Fri Nov 15, 2002 12:00 am
Location: UK

Post by CP » Wed Aug 11, 2004 1:21 pm

Thanks Pep,

It works like a dream !

Craig

:D

Post Reply