we are currently developing a wrapper control of your RadChartView RadCartesianChart. In this control we are using a DateTimeContinuousAxis like this:
<
telerik:RadCartesianChart.HorizontalAxis
>
<
telerik:DateTimeContinuousAxis
x:Name
=
"dateTimeContinuousAxis"
PlotMode
=
"OnTicks"
LabelFitMode
=
"Rotate"
MajorStepUnit
=
"Second"
LabelFormat
=
"HH:mm:ss"
FontSize
=
"{Binding AxisFontSize, FallbackValue=14}"
/>
</
telerik:RadCartesianChart.HorizontalAxis
>
When changing the AxisFontSize we entirely re-add all Series with new loaded data to get rid of this problem without success. In that process it does not even matter the new data is in a different time range or not. This is happen in design time and in runtime after changing the AxisFontSize of our control:
https://dl.dropboxusercontent.com/u/55589036/Pictures/Animated%20Screenshots/20150326_1440.gif
Besides the AxisFontSize we provide some other DependencyProperties:
· TimeRange to adjust the duration time. When changing the TimeRange we will also re-add everything and generate some empty data to get the desired time span on the X axis.
· TimeTickCount to change the number of time ticks on the X axis. When this is changed we only re-calculate the desired MajorStep value for the DateTimeContinuousAxis.
Combining those three settings together results in strange behaviors with the X axis date time value labels when changing the AxisFontSize in the first place:
https://dl.dropboxusercontent.com/u/55589036/Pictures/Animated%20Screenshots/20150326_1441.gif
Now how can we get rid of it? We already tried to re-add entirely new data in a different time scope. We also tried using UpdateLayout() and InvalidateVisual() in the end of our Update() method that re-adds the series. It seems this is a bug and we cannot find a way to bypass it. As I see you are keeping the old labels even on adding new data plots. This might be useful for resource management, but it disallows us to get rid of this display bug by simply redrawing those labels.
How can we fix it? Or is there a way to force your control to really redraw the labels?
Thank you!