I have two issues with the chart below. First is that the DateTimeContinuousAxis LabelFormat Binding does not work. I can set it in XAML like "dddd" and it works, but not with binding. It just defaults to year.
Secondly, I am trying to show one week's worth of data. I have 7 date values which displays great on the chart, but the horizontal ticks display: "Friday, Saturday, Saturday, Sunday, Monday, Monday, Tuesday, Wednesday, Thursday" I have the MajorStep bound to "0" and MajorStepUnit bound to "Day". So I have two extra ticks and they don't line up to the data points.
<
telerikChart:RadCartesianChart
x:Name
=
"AcquisitionChart"
Style
=
"{StaticResource AnalyticsSummaryChart}"
>
<
telerikChart:RadCartesianChart.Grid
>
<
telerikChart:CartesianChartGrid
MajorLinesVisibility
=
"Y"
MajorLineThickness
=
"1"
MajorLineColor
=
"Gray"
StripLinesVisibility
=
"Y"
/>
</
telerikChart:RadCartesianChart.Grid
>
<
telerikChart:RadCartesianChart.HorizontalAxis
>
<
telerikChart:DateTimeContinuousAxis
MajorTickThickness
=
"1"
PlotMode
=
"BetweenTicks"
ShowLabels
=
"True"
LabelFormat
=
"{Binding AcquistionCharLabelFormat}"
LabelFontSize
=
"9"
MajorStep
=
"{Binding AcquistionChartMajorStep, Mode=OneWay}"
MajorStepUnit
=
"{Binding AcquistionChartMajorStepUnit, Mode=OneWay}"
/>
</
telerikChart:RadCartesianChart.HorizontalAxis
>
<
telerikChart:RadCartesianChart.VerticalAxis
>
<
telerikChart:NumericalAxis
LineColor
=
"Transparent"
MajorStep
=
"{Binding AcquisitionSummary.DesiredTickCount, Mode=OneWay}"
LabelFormat
=
"N0"
/>
</
telerikChart:RadCartesianChart.VerticalAxis
>
<
telerikChart:RadCartesianChart.Series
>
<
telerikChart:AreaSeries
ItemsSource
=
"{Binding AcquisitionSummary.Progression, Mode=OneWay}"
Fill
=
"{StaticResource AreaSeriesFill}"
Stroke
=
"{StaticResource AreaSeriesStrokeColor}"
StrokeThickness
=
"2"
>
<
telerikChart:AreaSeries.ValueBinding
>
<
telerikChart:PropertyNameDataPointBinding
PropertyName
=
"Value"
/>
</
telerikChart:AreaSeries.ValueBinding
>
<
telerikChart:AreaSeries.CategoryBinding
>
<
telerikChart:PropertyNameDataPointBinding
PropertyName
=
"UtcDate"
/>
</
telerikChart:AreaSeries.CategoryBinding
>
</
telerikChart:AreaSeries
>
</
telerikChart:RadCartesianChart.Series
>
</
telerikChart:RadCartesianChart
>