Hello Telerik Team,
I was wondering how one would implement error bars in a ScatterPointSeries that look similar to this: https://demos.telerik.com/kendo-ui/line-charts/error-bars
There is a very similar question that has been asked before (https://www.telerik.com/forums/how-to-plot-error-bar-for-standard-deviation). Unfortunately, it doesn't look like the feature request mentioned there is going to be implemented anytime soon. As a workaround it was suggested to use a RangeBarSeries with a custom PointTemplate, but that will not work for me, since it is a Cathegorical series and I need to plot the data points at any arbitrary xy coordinate, which is my reason to use the ScatterPointSeries.
I was researching further and found someone mentioning a custom renderer but it seems that is only applicable for windows forms.
I also found this site https://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-create-scatter-errorbars-and-boxplot-series but it seems to only work for RadChart and not RadCartesianChart.
Any pointers in the right direction would be greatly appreciated.
Best Regards,
Robin
I have a linear chart that contains data from 1/4/2019 to 31/3/2020. However, the last tick is not displayed? How to always display the last tick with the corresponding label. Thanks
<telerik:RadCartesianChart
HorizontalZoomRangeStart="0.0" HorizontalZoomRangeEnd="1.0" RenderTransformOrigin="0.5,0.5">
<telerik:RadCartesianChart.Resources>
<Style BasedOn="{StaticResource LineSeriesStyle}" TargetType="{x:Type telerik:LineSeries}">
<Setter Property="CategoryBinding" Value="X" />
<Setter Property="ValueBinding" Value="Y" />
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="Stroke" Value="#0083A9" /> <!-- Aon blue. See: https://brandmatters.aon.com/bms/damui/index.cfm?category=1450&assetID=4993 -->
</Style>
</telerik:RadCartesianChart.Resources>
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:DateTimeContinuousAxis LabelFormat="{Binding HorizontalAxisFormatString}"
SmartLabelsMode="SmartStep" />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis
LabelFormat="{Binding VerticalAxisFormatString}"
RangeExtendDirection="None"
SmartLabelsMode="SmartStep" />
</telerik:RadCartesianChart.VerticalAxis>
<telerik:RadCartesianChart.SeriesProvider>
<telerik:ChartSeriesProvider Source="{Binding ItemsSource}">
<telerik:ChartSeriesProvider.SeriesDescriptors>
<telerik:ChartSeriesDescriptor ItemsSourcePath="Points" TypePath="SeriesType" />
</telerik:ChartSeriesProvider.SeriesDescriptors>
</telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
<telerik:RadCartesianChart.Grid>
<telerik:CartesianChartGrid MajorLinesVisibility="XY" />
</telerik:RadCartesianChart.Grid>
</telerik:RadCartesianChart>
In my WPF application using c#, I need a count of DataPoints of a series of particular RadCartesianChart using c# (code behind). How can I achieve it?
I have used the following line:
int a = ((Telerik.Windows.Controls.ChartView.CategoricalSeries)new System.Collections.Generic.Mscorlib_CollectionDebugView<CartesianSeries>(((Telerik.Windows.Controls.RadCartesianChart)my SelectedChart).Series).Items[0]).DataPoints.Count;
But it gives the following error:
Error CS0122 'Mscorlib_CollectionDebugView<T>' is inaccessible due to its protection level