ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

tooltips

How do I programmatically assign tooltip format string for scatter graph in visual studio .net.
0 Kudos
Message 1 of 2
(3,275 Views)
SreeJonn -

Here is an example for setting the ToolTip FormatString of the X-axis to 4 digitis, scientific notation.  This code piece is in C#, but the expression is nearly the same syntax in VB.

//turn on tooltips
scatterPlot1.ToolTipsEnabled = true;
//4 digit scientific notation
scatterPlot1.ToolTipXFormat = new FormatString(FormatStringMode.Numeric, "e4");

For the y-axis, the method is scatterPlot.ToolTipYFormat.  For information in regards to the FormatString Class format options, you can consult the 'NumberFormatInfo Class' in the .NET Framework Class Library help.

I hope this helps in your application development.  Have a great day!

Andrew W || Applications Engineer
National Instruments


0 Kudos
Message 2 of 2
(3,256 Views)