Jump to content
Software FX Community

Tooltips on CustomGridLines?


LeighHerbert

Recommended Posts

Is this possible?

If not, is there an alternative? I know I can draw a 'fake' grid line using a standard line series, but this seems unnecessarily messy (especially since I would need to set a point at every point on the X axis to get the tooltip to be visible from anywhere on the line).

Thanks in advance, as always.

Leigh.

Link to comment
Share on other sites

  • 1 month later...

Hi,

Customgridlines have a property called text. This property is shown as a tooltip by default.

CustomGridLine c1 = new CustomGridLine(100, "100");

chart1.AxisY.CustomGridLines.Add(c1); 

You are able to pass the said property as a second parameter. Additionally, please make sure tooltips have been enabled in the chart:

chart1.tooltips = true;

Regards,

RandyJ

Link to comment
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.

Guest
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...