I am trying to use a Labeltemplate on a DateTimeContinuousAxis but the texts are not located correctly on the axis. I am using the following WPF:
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:DateTimeContinuousAxis
MajorStep
=
"{Binding CategoryAxisMajorStep}"
MajorStepUnit
=
"{Binding CategoryAxisMajorStepUnit}"
LabelFitMode
=
"Rotate"
>
<
telerik:DateTimeContinuousAxis.LabelTemplate
>
<
DataTemplate
>
<
TextBlock
>
<
TextBlock.Text
>
<
MultiBinding
Converter
=
"{StaticResource DateTimeToStringTelerikChartMultiConverter}"
>
<
Binding
/>
<
Binding
Path
=
"DataContext.DateTimeFormat"
RelativeSource
=
"{RelativeSource FindAncestor, AncestorType={x:Type UserControl}}"
/>
</
MultiBinding
>
</
TextBlock.Text
>
</
TextBlock
>
</
DataTemplate
>
</
telerik:DateTimeContinuousAxis.LabelTemplate
>
</
telerik:DateTimeContinuousAxis
>
</
telerik:RadCartesianChart.HorizontalAxis
>
The chart looks as the attached file.
Can you help me to correctly display the labels.