This question is locked. New answers and comments are not allowed.
Is it possible to scale a chart series by setting a max and min value? I have a RadCartesianChart with X = weight and Y = date values. The weight goes from 0 to 140 but most of my values are all within 120 - 140 range. If I could set the max and min weight values to plus 10% and minus 10% the chart would have more detail. Here is my code
See attached example to see how the chart has little detail because of the scaling.
I attempted to set the min and max values from my data but the code failed, object null:
<
telerikChart:RadCartesianChart.VerticalAxis
>
<
telerikChart:LinearAxis
LineStroke
=
"{StaticResource PhoneDisabledBrush}"
LineThickness
=
"2"
/>
</
telerikChart:RadCartesianChart.VerticalAxis
>
<
telerikChart:RadCartesianChart.HorizontalAxis
>
<
telerikChart:DateTimeCategoricalAxis
LabelFitMode
=
"Rotate"
DateTimeComponent
=
"Date"
LabelFormat
=
"M-yy"
></
telerikChart:DateTimeCategoricalAxis
>
</
telerikChart:RadCartesianChart.HorizontalAxis
>
<
telerikChart:LineSeries
x:Name
=
"lines"
Stroke
=
"{StaticResource PhoneAccentBrush}"
CategoryBinding
=
"WeighDate"
ValueBinding
=
"WeighAmount"
>
</
telerikChart:LineSeries
>
See attached example to see how the chart has little detail because of the scaling.
I attempted to set the min and max values from my data but the code failed, object null:
double
myMin = myWs.Min(minW => minW.WeighAmount);
double
myMax = myWs.Max(maxW => maxW.WeighAmount);
xCartesionChart.Series[0].ItemsSource = myWsSorted;
lines.MaxHeight = myMax;
lines.MinHeight = myMin;