This question is locked. New answers and comments are not allowed.
Hi,
Using latest Telerik Q3 2013 dlls, I have implemented smart labels as followed
and in the viewmodel
1. The chart shows per minute datapoints starting from 6am to 6pm
2. The chart height and width is around 250 * 250.
Since the chart is smaller in height and width as per the design & as the series contains many datapoints, the labels are overlapping.
As the smart labels are not readable (PFA), we want a functionality where we can calculate the number of labels to be displayed depending upon the data points and zoomed/viewable chart
For eg: for a chart with 1000 datapoints should show only equally distanced 10 data point smart labels.
Please provide me a way to achieve the solution to the above requirement.
Thanks,
Nitin
Using latest Telerik Q3 2013 dlls, I have implemented smart labels as followed
<telerik:RadCartesianChart.SmartLabelsStrategy> <telerik:ChartSmartLabelsStrategy /> </telerik:RadCartesianChart.SmartLabelsStrategy>and <telerik:RadCartesianChart.SeriesProvider> <telerik:ChartSeriesProvider Source="{Binding SeriesCollection,Mode=TwoWay}"> <telerik:ChartSeriesProvider.SeriesDescriptors> <telerik:CategoricalSeriesDescriptor ItemsSourcePath="Data" ValuePath="LineSeriesChartValue" CategoryPath="LineSeriesChartCategory"> <telerik:CategoricalSeriesDescriptor.Style> <Style TargetType="telerik:LineSeries"> <Setter Property="CombineMode" Value="Cluster" /> <Setter Property="TrackBallInfoTemplate" Value="{Binding TrackballInfoTemplate, Mode=TwoWay}" /> <Setter Property="Stroke" Value="{Binding SeriesStroke, Mode=TwoWay}" /> <Setter Property="Tag" Value="{Binding SeriesName, Mode=TwoWay}" /> <Setter Property="VerticalAxis" Value="{Binding VerticalAxis, Mode=TwoWay}" /> <Setter Property="ShowLabels" Value="{Binding IsLabelEnabled, Mode=TwoWay}
" /> </Style> </telerik:CategoricalSeriesDescriptor.Style> </telerik:CategoricalSeriesDescriptor> </telerik:ChartSeriesProvider.SeriesDescriptors> </telerik:ChartSeriesProvider> </telerik:RadCartesianChart.SeriesProvider>and in the viewmodel
private void ShowMarkers(bool IsShowLabelEnabled){ if(IsShowLabelEnabled) { IsLabelEnabled = true; xRadCartesianChart.SmartLabelsStrategy = new ChartSmartLabelsStrategy(); }}1. The chart shows per minute datapoints starting from 6am to 6pm
2. The chart height and width is around 250 * 250.
Since the chart is smaller in height and width as per the design & as the series contains many datapoints, the labels are overlapping.
As the smart labels are not readable (PFA), we want a functionality where we can calculate the number of labels to be displayed depending upon the data points and zoomed/viewable chart
For eg: for a chart with 1000 datapoints should show only equally distanced 10 data point smart labels.
Please provide me a way to achieve the solution to the above requirement.
Thanks,
Nitin