This is a migrated thread and some comments may be shown as answers.

MaxZoom Issue

1 Answer 116 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Guyind
Top achievements
Rank 1
Guyind asked on 27 Feb 2012, 11:39 AM
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>

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 01 Mar 2012, 12:37 PM
Hello Guy,

Could you elaborate a bit what exactly is the issue you are experiencing with MaxZoom property? We are aware of this problem logged in our public issue tracking system here that will be addressed for the weekly internal build on Monday (as a consequence this bug prevents MaxZoom from working correctly too).


All the best,
Giuseppe
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
ChartView
Asked by
Guyind
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or