Hi,
I have a RadCartesian Chart which has X& Y Axis as Linear axes. Chart Series is dynamically loaded. At one point my Axis labels overlap. I saw this link
http://docs.telerik.com/devtools/wpf/controls/radchartview/axes/axis-smart-labels but I am not able find the property SmartLabelsMode in the xaml.
Please help me solve the overlapping issue.
Here is my Xaml
<Grid> <telerik:RadCartesianChart x:Name="CartesianChart" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Style="{StaticResource RadCartesianChartStyle1}"> <telerik:RadCartesianChart.Grid> <telerik:CartesianChartGrid MajorLinesVisibility="XY" MajorXLineStyle="{StaticResource GridLineStyle}" MajorYLineStyle="{StaticResource GridLineStyle}" /> </telerik:RadCartesianChart.Grid> <telerik:RadCartesianChart.HorizontalAxis> <telerik:LinearAxis Title="{Binding HorizontalAxisTitle}" Minimum="{Binding Xmin}" LineThickness="2" LineStroke="Transparent" Foreground="{DynamicResource BRUSH_TEXT}" Style="{StaticResource LinearAxisStyle}" /> </telerik:RadCartesianChart.HorizontalAxis> <telerik:RadCartesianChart.VerticalAxis> <telerik:LinearAxis Title="{Binding VerticalAxisTitle}" LineThickness="2" Foreground="{DynamicResource BRUSH_TEXT}" Style="{StaticResource LinearAxisStyle}" /> </telerik:RadCartesianChart.VerticalAxis> <telerik:RadCartesianChart.SmartLabelsStrategy> <telerik:ChartSmartLabelsStrategy /> </telerik:RadCartesianChart.SmartLabelsStrategy> <telerik:RadCartesianChart.Behaviors> <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both" PanMode="Both" /> <telerik:ChartTooltipBehavior /> </telerik:RadCartesianChart.Behaviors> <telerik:RadCartesianChart.EmptyContentTemplate> <DataTemplate> <StackPanel> <TextBlock Text="{Binding EmptyContentText}" /> </StackPanel> </DataTemplate> </telerik:RadCartesianChart.EmptyContentTemplate> <telerik:RadCartesianChart.TooltipTemplate> <DataTemplate> <Border Background="{DynamicResource BRUSH_TOOLTIP}" BorderBrush="{DynamicResource BRUSH_TOOLTIP}" BorderThickness="1" Padding="10"> <StackPanel Background="{DynamicResource BRUSH_TOOLTIP}"> <StackPanel Width="{TemplateBinding Width}" Orientation="Horizontal" Background="{DynamicResource BRUSH_TOOLTIP}" Margin="5"> <TextBlock Text="{Binding DataItem.VerticalAxisTitle}" /> <TextBlock Text="{Binding YValue}" /> </StackPanel> <StackPanel Width="{TemplateBinding Width}" Orientation="Horizontal" Background="{DynamicResource BRUSH_TOOLTIP}" Margin="5"> <TextBlock Text="{Binding DataItem.HorizontalAxisTitle}" /> <TextBlock Text="{Binding XValue}" /> </StackPanel> <TextBlock Text="{Binding Presenter.DisplayName}" /> </StackPanel> </Border> </DataTemplate> </telerik:RadCartesianChart.TooltipTemplate> <telerik:RadCartesianChart.SeriesProvider> <telerik:ChartSeriesProvider x:Name="ChartSeriesProvider" Source="{Binding SeriesCollection}"> <telerik:ChartSeriesProvider.SeriesDescriptors> <telerik:ScatterSeriesDescriptor ItemsSourcePath="Points" YValuePath="YValue" XValuePath="XValue"> <telerik:ScatterSeriesDescriptor.Style> <Style TargetType="telerik:ScatterSplineSeries"> <Setter Property="StrokeThickness" Value="{Binding StrokeThickness}" /> <Setter Property="Stroke" Value="{Binding Color}" /> <Setter Property="Visibility" Value="{Binding IsVisible,Converter={StaticResource BooleanToVisibilityConverter}}" /> <Setter Property="DisplayName" Value="{Binding Name}" /> <Setter Property="PointTemplate" Value="{StaticResource PointTemplate}" /> <Style.Triggers> <DataTrigger Binding="{Binding IsDashed,Mode=TwoWay}" Value="True"> <Setter Property="DashArray" Value="5"/> </DataTrigger> </Style.Triggers> </Style> </telerik:ScatterSeriesDescriptor.Style> </telerik:ScatterSeriesDescriptor> </telerik:ChartSeriesProvider.SeriesDescriptors> </telerik:ChartSeriesProvider> </telerik:RadCartesianChart.SeriesProvider> </telerik:RadCartesianChart> </Grid></UserControl>