DateTimeContinuousAxis MajorStep Label

2 posts, 0 answers
  1. Mark
    Mark avatar
    12 posts
    Member since:
    Jan 2017

    Posted 02 Feb 2017 Link to this post

    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:CartesianChartGrid MajorLinesVisibility="Y"
            <telerikChart:DateTimeContinuousAxis  MajorTickThickness="1"
                                                  LabelFormat="{Binding AcquistionCharLabelFormat}"
                                                  MajorStep="{Binding AcquistionChartMajorStep, Mode=OneWay}"
                                                  MajorStepUnit="{Binding AcquistionChartMajorStepUnit, Mode=OneWay}"/>
            <telerikChart:NumericalAxis LineColor="Transparent"
                                        MajorStep="{Binding AcquisitionSummary.DesiredTickCount, Mode=OneWay}"
            <telerikChart:AreaSeries ItemsSource="{Binding AcquisitionSummary.Progression, Mode=OneWay}"
                                     Fill="{StaticResource AreaSeriesFill}"
                                     Stroke="{StaticResource AreaSeriesStrokeColor}"
                    <telerikChart:PropertyNameDataPointBinding PropertyName="Value"/>
                    <telerikChart:PropertyNameDataPointBinding PropertyName="UtcDate"/>
  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 07 Feb 2017 Link to this post

    Hi Mark,

    Thank you for contacting us. Indeed, the BindingContext of the chart does not propagate to the chart axes and the grid. I have logged a bug report in our feedback portal where you can follow the issue. I have also updated your Telerik points as a token of gratitude for bringing this issue to our attention.

    Please, let us know if you have any other questions.

    Rosy Topchiyska
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top