DateTimeCategoricalAxis issue

4 posts, 0 answers
  1. Martin
    Martin avatar
    3 posts
    Member since:
    Feb 2011

    Posted 06 May 2013 Link to this post

    Hi,

    We need to create a chart with multiple series. I created a RadCartesian chart which has a DateTimeCategoricalAxis as horizontal axis and a LinearAxis as vertical axis. For the series I use scatterpoint series.

    <telerik:RadCartesianChart>
                <telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:DateTimeCategoricalAxis Title="Inspection Date" />
                </telerik:RadCartesianChart.HorizontalAxis>
                <telerik:RadCartesianChart.VerticalAxis>
                    <telerik:LinearAxis LineThickness="1"
                                        Title="Value">
                    </telerik:LinearAxis>
                </telerik:RadCartesianChart.VerticalAxis>
                <telerik:RadCartesianChart.Series>
                    <telerik:ScatterPointSeries ItemsSource="{Binding Path=InspectionHistory}"
                                                PointTemplate="{StaticResource PointTemplate1}"
                                                XValueBinding="InspectionDate"
                                                YValueBinding="Value" />
                    <telerik:ScatterPointSeries ItemsSource="{Binding Path=InspectionHistory}"
                                                PointTemplate="{StaticResource PointTemplate2}"
                                                XValueBinding="InspectionDate"
                                                YValueBinding="MinimalValue">
                    </telerik:ScatterPointSeries>
                </telerik:RadCartesianChart.Series>
                 
                <telerik:RadCartesianChart.Grid>
                    <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
                </telerik:RadCartesianChart.Grid>
            </telerik:RadCartesianChart>

    Currently the chart does not show the scatter points. If I change the horizontal axis into a linearaxis and bind the X value to another property, the chart is drawn. Why doesnt it work with the DateTimeCategoricalAxis ?

    I am using the 2013 Q1 control.

    Kind regards,
    Mike
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 08 May 2013 Link to this post

    Hi Martin,

    Please mind that the ScatterPoint series are intended to be used with Linear, Logarithmic Axes only as described in our documentation. However with our upcomming Q2 2013 release (at the end of this month), you'll be able to achieve that with the new Point series. So stay tuned.

    Kind regards,
    Evgenia
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Martin
    Martin avatar
    3 posts
    Member since:
    Feb 2011

    Posted 04 Jul 2013 Link to this post

    Hi Evgenia,

    I installed the Q2 2013 release of the components. According to the documentation there is still no possibility to have a horizontal datetime axis in a scatter point serie. Is the documentation not updated or is this feature not release in Q2 2013?

    Kind regards,
    Mike
  5. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 08 Jul 2013 Link to this post

    Hi Martin,

     As I previously mentioned not ScatterPoint but Point series now supports date time horizontal axis. You can check our online demo with source code provided where this is demonstrated.

    Regards,
    Evgenia
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top