05-18-2012 05:10 PM
In my IntensityGraph, the YAxis has two properties: EditRangeNumericFormatMode, and EditRangeDateTimeFormatMode. Presumably this means I should be able to set my axis to display either time format or numeric format, and use these properties to control the details of how those are displayed. Problem is, I can't figure out how to setup the axis to display time. All the plot and axes properties seem to support numeric value but not time value. How do I get the IntensityGraph to display an axis as time value? Thanks.
05-21-2012 11:40 AM
To display time on the scale/axes you need to set the LabelFormat to appropriate value.
The following code snippet should be clear to make you understand how to do it.
intensityXAxis1.MajorDivisions.LabelFormat = new FormatString(FormatStringMode.DateTime, "G");
05-21-2012 01:22 PM - edited 05-21-2012 01:23 PM
OK, thanks. I guess the reason I missed this is that the VS properties editor does not give you the option of configuring date/time format from the GUI. So, configuring it via line of C# code is the only option. It would be good to mention this in the documentation for EditRangeDateTimeFormatMode.