Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
NumericXAxis Label Formatting
posted

Anyone know how to format the labels in a NumericXAxis  via code behind.

I am creating the axis with the code below but cannot figure out how to format the integer lables into a date time string.

 

NumericXAxis xmXAxis = new NumericXAxis();

xmXAxis .LabelSettings.Extent = 55;

xmXAxis .LabelSettings.Location = AxisLabelsLocation.OutsideLeft;

xmXAxis .MinimumValue = 0;

xmXAxis .MajorStroke = DarkBrush;

xmXAxis .MajorStrokeThickness = 1;

xmXAxis .MinorStrokeThickness = 0;

Chart1.Axes.Add(xmXAxis);

 

Thanks for any help!