I am trying to set my x axis as a date. When I do that it seems to generate a random number of labels where only one has a value associated with it.
For example, if i had these two items:
The graph has the x-axis set to autocalculate and I get 13 values on the x-axis but only two distinct and only two are populated with the values above
What am I doing wrong? How can i get the graph to only show distinct values? I have a series set up for each val where the date is the XValue. This is an MVVM project.
For example, if i had these two items:
measures.Add(
new
RandomItem{ Date = DateTime.Now.AddDays(-3).Date, ValOne= 5, ValTwo = 4, ValThree = 3, ValFour = 2, ValFive = 1 });
measures.Add(
new
RandomItem{ Date = DateTime.Now.AddDays(-2).Date, ValOne= 5, ValTwo = 7, ValThree = 3, ValFour = 2, ValFive = 1 });
The graph has the x-axis set to autocalculate and I get 13 values on the x-axis but only two distinct and only two are populated with the values above
<
telerik:ChartArea.AxisX
>
<
telerik:AxisX
LabelRotationAngle
=
"90"
Title
=
"Day of Month"
IsDateTime
=
"True"
/>
</
telerik:ChartArea.AxisX
>
What am I doing wrong? How can i get the graph to only show distinct values? I have a series set up for each val where the date is the XValue. This is an MVVM project.