This question is locked. New answers and comments are not allowed.
Hi,
I'm having some difficulties with using the MaxZoom with Charts. Putting MaxZoom="10,1" won't cap the Graph.
Here's the code:
<
telerik:RadCartesianChart
Grid.Column
=
"0"
x:Name
=
"xLineChart"
Height
=
"500"
MaxZoom
=
"10,1"
>
<
telerik:RadCartesianChart.Behaviors
>
<
telerik:ChartPanAndZoomBehavior
ZoomMode
=
"Horizontal"
PanMode
=
"Horizontal"
x:Name
=
"ChartZoomBehaviour"
/>
<
telerik:ChartTrackBallBehavior
ShowIntersectionPoints
=
"True"
ShowTrackInfo
=
"True"
SnapMode
=
"ClosestPoint"
/>
</
telerik:RadCartesianChart.Behaviors
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
Title
=
"Lengte file"
Foreground
=
"DarkGray"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:DateTimeContinuousAxis
PlotMode
=
"OnTicks"
MajorStepUnit
=
"Hour"
MajorStep
=
"1"
LabelFormat
=
"HH:mm"
LabelFitMode
=
"Rotate"
Title
=
"Tijdstip"
Foreground
=
"DarkGray"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:LineSeries
ItemsSource
=
"{Binding LineData}"
x:Name
=
"xLineSerie"
CategoryBinding
=
"Tijdstip"
ValueBinding
=
"FileLengte"
>
<
telerik:LineSeries.TrackBallInfoTemplate
>
<
DataTemplate
>
<
TextBlock
>
<
Run
Text
=
"Tijdstip: "
/>
<
Run
Text
=
"{Binding DataPoint.Category,StringFormat='dddd dd/MM/yyyy HH:mm'}"
/>
<
LineBreak
/>
<
Run
Text
=
"Lengte: "
/>
<
Run
Text
=
"{Binding DataPoint.Value,StringFormat=\{0:n2\}km}"
/>
</
TextBlock
>
</
DataTemplate
>
</
telerik:LineSeries.TrackBallInfoTemplate
>
</
telerik:LineSeries
>
</
telerik:RadCartesianChart
>