I'm using .Net V2 2.0.2040.15119
hx1 = Series1.CalcXPosValue(Series1.XValues(q))
hy1 = Series1.CalcYPosValue(Series1.CloseValues(q))
NOTE: Series1 is a candleseries
I have built many VB.NET web pages using your WebChart component and all calculations work fine. I just built a VB.NET application using TChart component and the exact code I used in the web application. None of the "Calc" methods bring back valid coordinates.
Any ideas?
Thanks
.Net application CalcXPosValue problem
Hi dlewis
It works fine here using the code below and the latest version available at the client area which is Build 2.0.2511.18117.
Can you please try using the latest version and modify the code to reproduce the problem here?
Best Regards
Edu
Steema Software
It works fine here using the code below and the latest version available at the client area which is Build 2.0.2511.18117.
Code: Select all
Private Sub TChart1_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles TChart1.MouseDown
Dim hx1 As Double
Dim hy1 As Double
Dim index As Integer
index = Candle1.Clicked(e.X, e.Y)
If (index <> -1) Then
hx1 = Candle1.CalcXPosValue(Candle1.XValues(index))
hy1 = Candle1.CalcYPosValue(Candle1.CloseValues(index))
TChart1.Text = "hx1: " + hx1.ToString + " hy1: " + hy1.ToString
Else
TChart1.Text = e.X.ToString + " " + e.Y.ToString
End If
End Sub
Best Regards
Edu
Steema Software