.Net application CalcXPosValue problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
dlewis
Newbie
Newbie
Posts: 3
Joined: Thu Oct 27, 2005 4:00 am

.Net application CalcXPosValue problem

Post by dlewis » Wed Dec 20, 2006 3:02 pm

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

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Thu Dec 21, 2006 9:20 am

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.

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
Can you please try using the latest version and modify the code to reproduce the problem here?

Best Regards
Edu

Steema Software

Post Reply