It is possible, but unfortunately it is not as easy as you might expect. The problem is that ScatterGraph uses the .NET Framework
NumberFormatInfo class to format the axis labels. This gives you the ability to leverage all of the .NET Framework's formatting capabilities in formatting your axis, but NumberFormatInfo throws a FormatException if you try to use it to format a double into a hexadecimal formatted string. The axis values are doubles, therefore, you can not simple create a FormatString with a hexadecimal format specifier.
You can work around this by creating a class that derives from FormatString, override FormatDouble, and format the value yourself. For example, you could cast the double value to an integer and format it into a hexadecimal formatted string, like this:
class HexLabelFormat : FormatString
{
public override string FormatDouble(double value)
{
return String.Format("0x{0:X2}", (int)value);
}
}
You could then specify this as your axis label format like this:
xAxis1.MajorDivisions.LabelFormat = new HexLabelFormat();
Once the label format has been set to the custom FormatString implementation, the labels on the axis will be displayed in hexadecimal.
- Elton