Page 1 of 1

Fixing Error Bars

Posted: Tue Aug 10, 2004 3:10 pm
by 9079402
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

:)

Posted: Wed Aug 11, 2004 12:56 am
by Pep
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))

Posted: Wed Aug 11, 2004 1:21 pm
by 9079402
Thanks Pep,

It works like a dream !

Craig

:D