Jump to content
Software FX Community

how to get xAxis value in GetTip event from chartcontrol

Recommended Posts

I have trapped ctrlChart_GetTip event to display custom tooltip on graph points. I can get the Y cordinate value using

ctrlChart.Data[e.Series, e.Point] function. Is there any way to get the X value for the given series and point.




Share this post

Link to post
Share on other sites


Take a look at the following sample:

private void chart1_GetTip(object sender, GetTipEventArgs e){ if (e.HitType == HitType.Point) {   double x = chart1.Data.X[0, e.Point];   MessageBox.Show(x.ToString()); }}

Hope this helps.


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...