Jump to content
Software FX Community

Incorrect Tooltip Values


User (Legacy)

Recommended Posts

The form code below reproduces a problem I'm having.  When a series has its

gallery set curve and the chart's gallery is set to scatter, the resulting

graph always displays values for the next to last point in the tooltip no

matter where you are on the curve. Switching the series gallery to lines,

you can see that the point value is displayed correctly.

Public Class Form3

Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()

MyBase.New()

'This call is required by the Windows Form Designer.

InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.

Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)

If disposing Then

If Not (components Is Nothing) Then

components.Dispose()

End If

End If

MyBase.Dispose(disposing)

End Sub

'Required by the Windows Form Designer

Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer

'It can be modified using the Windows Form Designer.

'Do not modify it using the code editor.

Friend WithEvents Chart1 As SoftwareFX.ChartFX.Chart

<System.Diagnostics.DebuggerStepThrough()> Private Sub

InitializeComponent()

Dim SeriesAttributes1 As SoftwareFX.ChartFX.SeriesAttributes = New

SoftwareFX.ChartFX.SeriesAttributes

Dim SeriesAttributes2 As SoftwareFX.ChartFX.SeriesAttributes = New

SoftwareFX.ChartFX.SeriesAttributes

Me.Chart1 = New SoftwareFX.ChartFX.Chart

Me.SuspendLayout()

'

'Chart1

'

Me.Chart1.Gallery = SoftwareFX.ChartFX.Gallery.Curve

Me.Chart1.GalleryObj.Native = True

Me.Chart1.Location = New System.Drawing.Point(16, 16)

Me.Chart1.Name = "Chart1"

SeriesAttributes1.Gallery = SoftwareFX.ChartFX.Gallery.Scatter

SeriesAttributes1.YAxis = SoftwareFX.ChartFX.YAxis.Main

SeriesAttributes2.MarkerShape = SoftwareFX.ChartFX.MarkerShape.None

SeriesAttributes2.MarkerSize = CType(1, Short)

SeriesAttributes2.YAxis = SoftwareFX.ChartFX.YAxis.Main

Me.Chart1.Series.AddRange(New SoftwareFX.ChartFX.SeriesAttributes()

{SeriesAttributes1, SeriesAttributes2})

Me.Chart1.Size = New System.Drawing.Size(504, 384)

Me.Chart1.TabIndex = 0

Me.Chart1.TipMask = "Pressure %v"

'

'Form3

'

Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)

Me.ClientSize = New System.Drawing.Size(536, 414)

Me.Controls.Add(Me.Chart1)

Me.Name = "Form3"

Me.Text = "Form3"

Me.ResumeLayout(False)

End Sub

#End Region

Private Sub Form3_Load(ByVal sender As Object, ByVal e As

System.EventArgs) Handles MyBase.Load

Chart1.OpenData(SoftwareFX.ChartFX.COD.Values, 1, 5)

Chart1.OpenData(SoftwareFX.ChartFX.COD.XValues, 1, 5)

Chart1.Value(0, 0) = 10

Chart1.XValue(0, 0) = 1

Chart1.Value(0, 1) = 20

Chart1.XValue(0, 1) = 2

Chart1.Value(0, 2) = 30

Chart1.XValue(0, 2) = 3

Chart1.Value(0, 3) = 40

Chart1.XValue(0, 3) = 4

Chart1.Value(0, 4) = 50

Chart1.XValue(0, 4) = 5

Chart1.CloseData(SoftwareFX.ChartFX.COD.XValues)

Chart1.CloseData(SoftwareFX.ChartFX.COD.Values)

Chart1.Series(0).Gallery = SoftwareFX.ChartFX.Gallery.Curve

End Sub

End Class

Link to comment
Share on other sites

It looks like you're highlighting the point.  It's hovering over anyplace on

the curve that causes the problem.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:Im55Hw%23cEHA.3152@webserver3.softwarefx.com...

> Using the latest SP and your code I don't get the problem, I get the

> attached screenshot.

>

>

> --

> FP

> Software FX

>

>

>

Link to comment
Share on other sites

Hover over the curve itself (between the points).

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:9N4PnZ$cEHA.3888@webserver3.softwarefx.com...

> The Highlight occurs when I hover (as well as the ToolTip).

>

> You don't get the Highlight ? I'm running the same code you sent and

> Highlight was NOT disabled.

>

> Where exactly are you hovering the mouse ?

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...