I have a chart where AxisX is a integer sequence that is updated programatically. The problem I am facing is, sometimes I get non integer values (such as 1.5, 2.5.... etc) as lables in addition to Integer labels. I do not want these non Integer labels to appear. How can I do this
1. Through C# code
2. Through XAML
The folowing is the basic code (validations removed) I am using,
1. Through C# code
2. Through XAML
The folowing is the basic code (validations removed) I am using,
private
void
SetXAxisSettings(RadChart chart,
double
axisMin,
double
axisMax)
{
//Update the X Axis
AxisX axisX = chart.DefaultView.ChartArea.AxisX;
axisX.MinValue = axisMin;
axisX.MaxValue = axisMax;
}
and, the following is the static settings I have in XAML
<
telerik:AxisX
LayoutMode
=
"Between"
LabelStep
=
"1"
Step
=
"1"
AutoRange
=
"False"
Title
=
"Batch"
/>