ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
06-27-2008 08:12 AM
07-31-2008 01:54 AM
Hi Garraty,
Sorry for the delayed response.
Regarding your first question, if label format = engeneering s0 works for you, and you only don't like the first and last labels, then you can try setting the EndLabelsAlwaysVisible property on the XAxis to false.
If this doesn't work, then you can always customize the FormatString, by doing something like this:
private class CustomFormatString : FormatString
{
public CustomFormatString()
: base(FormatStringMode.Engineering, "s6") // or any other that comes close to what you need.
{
}
public override string FormatDouble(double value)
{
string myCustomString = base.FormatDouble(value);
/* modify the myCustomString to how you need */
return myCustomString;
}
}
and apply your custom formatter to the MajorDivisions, something like this:
xyPlotXAxis.MajorDivisions.LabelFormat = new CustomFormatString();
Regarding your second question, thanks for reporting the issue. We have identified this as a bug in our ScatterGraph control. We will have a fix available for this problem in an upcoming release of Measurement Studio after 8.5.