2 posts, 0 answers
  1. Hila
    Hila avatar
    1 posts
    Member since:
    Dec 2014

    Posted 29 May Link to this post



    I'm trying to create RadCartesianChart that on VerticalAxis and HorizontalAxis have DateTimeCategoricalAxis.

    In the HorizontalAxis should be the date and in the VerticalAxis should be the Hours and Minutes.

    Attached my view, I'm working on it over a week and still can't find the answer to this issue.


                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition />
            <telerik:RadLegend x:Name="legend1"
                               Items="{Binding LegendItems, ElementName=Chart1}"
                               Style="{DynamicResource RadLegendStyle1}"
                            <StackPanel Orientation="Horizontal">
                            <Border Width="12"
                            Background="{Binding MarkerFill}" />

                            <TextBlock Margin="2"
                            Text="{Binding Title}" />
            <telerik:RadCartesianChart x:Name="Chart1"
                                       Palette="{StaticResource customPalette}"
                                       Style="{DynamicResource StyleRadCartesianChartSeriesPoint}">
                    <telerik:DateTimeCategoricalAxis LabelFormat="dd - MM - yy"
                    <telerik:DateTimeCategoricalAxis LabelFormat="HH : mm" />
                    <telerik:CartesianChartGrid MajorLinesVisibility="Y" />
                <telerik:PointSeries PointTemplate="{StaticResource PointTemplate2}"
                                     ItemsSource="{Binding valueBarPoints}"
                        <telerik:CategoricalDataPoint Category="January"
                                                      Value="4" />
                        <telerik:CategoricalDataPoint Category="February"
                                                      Value="7" />
                        <telerik:CategoricalDataPoint Category="March"
                                                      Value="5" />
                        <telerik:CategoricalDataPoint Category="April"
                                                      Value="6" />
                        <telerik:CategoricalDataPoint Category="May"
                                                      Value="12" />
                        <telerik:CategoricalDataPoint Category="June"
                                                      Value="9" />
                        <telerik:CategoricalDataPoint Category="July"
                                                      Value="3" />
                        <telerik:SeriesLegendSettings Title="List 2" />









  2. Petar Marchev
    Petar Marchev avatar
    968 posts

    Posted 30 May Link to this post

    Hi Hila,

    As explained in our online documentation, we have essentially two types of series - scatter and categorical. Scatter series require two numeric axes, where categorical series require one categorical (or datetimecontunuous) axis and one numeric axis. However, there is no series that will work with two datetime axes. 

    I suppose that if you need to show the Hours in the vertical axes, you can create a new property in your business items - Hours of type double and use this with a LinearAxis.

    Petar Marchev
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft R3 2016 release webinar banner
Back to Top