I am using a RangeSeries in a RadChart to plot a collection of objects. When I set the YAxis to AutoRange="false" and my data contains values that have a High value larger than the MaxValue of the Y-axis, the series data is skewed and not plotted correctly--in this case all data is plotted at the MaxValue instead of its actual value.
The set of data that is being plotted in my sample app is below. In the attached "RangeSeriesSetRange" image you'll see that the value for X=6 is at 100, thought it should be at 5000.
Here is the XAML for the RadChart that behaves incorrectly:
The set of data that is being plotted in my sample app is below. In the attached "RangeSeriesSetRange" image you'll see that the value for X=6 is at 100, thought it should be at 5000.
Here is the XAML for the RadChart that behaves incorrectly:
<
telerik:RadChart
x:Name
=
"MenuRadChart3"
IsHitTestVisible
=
"False"
Background
=
"Transparent"
Width
=
"490"
Margin
=
"18, 50,0,0"
Height
=
"260"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
ChartAreaName
=
"1"
>
<
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:RangeSeriesDefinition
ShowPointMarks
=
"False"
ShowItemLabels
=
"False"
ShowItemToolTips
=
"False"
/>
</
telerik:SeriesMapping.SeriesDefinition
>
<
telerik:SeriesMapping.ItemMappings
>
<
telerik:ItemMapping
FieldName
=
"TraceHigh"
DataPointMember
=
"High"
/>
<
telerik:ItemMapping
FieldName
=
"TraceLow"
DataPointMember
=
"Low"
/>
<
telerik:ItemMapping
FieldName
=
"X"
DataPointMember
=
"XValue"
/>
</
telerik:SeriesMapping.ItemMappings
>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
NoDataString
=
"Waiting for data..."
EnableAnimations
=
"False"
>
<
telerik:ChartArea.SeriesStyles
>
<
telerik:SeriesStyles
/>
</
telerik:ChartArea.SeriesStyles
>
<
telerik:ChartArea.Annotations
>
<
telerik:CustomGridLine
Visibility
=
"Collapsed"
/>
</
telerik:ChartArea.Annotations
>
<
telerik:ChartArea.AxisX
>
<
telerik:AxisX
StripLinesVisibility
=
"Collapsed"
AutoRange
=
"false"
MaxValue
=
"10"
MinValue
=
"0"
Step
=
"1"
>
</
telerik:AxisX
>
</
telerik:ChartArea.AxisX
>
<
telerik:ChartArea.AxisY
>
<
telerik:AxisY
StripLinesVisibility
=
"Visible"
AutoRange
=
"False"
MaxValue
=
"100"
MinValue
=
"0"
Step
=
"10"
/>
</
telerik:ChartArea.AxisY
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartLegend
Visibility
=
"Collapsed"
/>
</
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartDefaultView.ChartTitle
>
<
telerik:ChartTitle
Visibility
=
"Collapsed"
/>
</
telerik:ChartDefaultView.ChartTitle
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
</
telerik:RadChart
>
private
void
getUserCollection()
{
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, X = 3 });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, X = 4 });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, X = 5});
users.Add(
new
User { TraceHigh = 5000, TraceLow = 0, X = 6 });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, X = 7 });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, X = 8 });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, X = 9 });
users.Add(
new
User { TraceHigh = 10, TraceLow = 0, X = 10 });
}