Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
How to get the StockDate from CandleDataPoint
posted

Hi all,

I'm having some problem with the ultraChart 

in my application.

I want get the StockDate from CandleDataPoint  in DataItemOver Event, Here is the code:

    Private Sub UChart_DataItemOver(sender As Object, e As ChartDataEventArgs) Handles UChart.DataItemOver
        Dim a As Object = UChart.Data
        Dim Item As Appearance.CandleDataPoint = e.Primitive.DataPoint

        Dim tipInfo As New UltraToolTipInfo(String.Format("StockOpen:{1}{0}StockClose:{2}{0}StockHigh:{3}{0}StockLow:{4}", vbCrLf, Item.Open, Item.Close, Item.High, Item.Low), Infragistics.Win.ToolTipImage.Info, Format(e.RowLabel, "yyyy-MM-dd HH:mm"), Infragistics.Win.DefaultableBoolean.True)
        UltraToolTipManager1.SetUltraToolTip(UChart, tipInfo)
        UltraToolTipManager1.ShowToolTip(UChart)
    End Sub

In this Event,The CandleDataPoint .Date is sysdate and not StockDate,The e.RowLabel looks all right but just a text string(12/29 Mon 0:45:00),How can I  get a format text ,like "yyyy-MM-dd HH:mm".

Thank you so much for your help in advance.