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
620
tooltip on a custom line in winchart
posted

Hi,

i found in this forum a solution for make a new line in a winchart, now i want add a tooltip when the mouse is over this line, need help, tjhis is the code for create a line:

    Private Sub UltraChart1_FillSceneGraph(sender As Object, e As Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs) Handles UltraChart1.FillSceneGraph
        Dim media As Double = 0
        Dim linea As Infragistics.UltraChart.Core.Primitives.Line

        Try
            Dim x As Infragistics.UltraChart.Core.IAdvanceAxis = e.Grid("X")
            Dim y As Infragistics.UltraChart.Core.IAdvanceAxis = e.Grid("Y")

            media = UltraGrid1.DisplayLayout.Rows.SummaryValues("m" & UltraGrid1.DisplayLayout.Bands(0).Columns(UltraComboTestate.Value).Key).Value
            linea = New Infragistics.UltraChart.Core.Primitives.Line(New Point(x.Map(0), y.Map(media)), New Point(x.Map(50), y.Map(media)))
            linea.PE.Stroke = Color.Red

            e.SceneGraph.Add(linea)
        Catch ex As Exception

        End Try

    End Sub

tks for help