Jump to content
Software FX Community

Custom Tooltip for X Axis Only


JohnFowler

Recommended Posts

Posted

I have a chart where I like the default tooltips for the most part.  The exception is the tooltip for the X Axis, which is just "X Axis".  I have titled the Y Axis, and I noticed the default tooltip for that axis is its title, but I would prefer not to title the X Axis, which has custom self-explanatory labels.  (That is, unless there's a way to title the axis but make the title invisible so the user doesn't see it, which would be OK.)

Most of the things I've seen that alter tooltips are intended just for the data points, or for the entire chart.  Is there a way to change the tooltip only for the X Axis, without messing up all of the default tooltips everywhere else?

I am using an "Image" RenderFormat.

Thanks!

John Fowler

 

  • 3 weeks later...
Posted

I got the answer from Software FX support, and I'm posting it here in case someone else has the same problem and is searching the forums before asking.

To give the X Axis a custom tooltip without showing it as a title, use:

Chart1.AxisX.Title =

new TitleDockable("Custom Tooltip");

Thanks!

John Fowler

 

Archived

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

×
×
  • Create New...