timebar issuse when selected yearly view with lots of data

2 posts, 0 answers
  1. Rajesh
    Rajesh avatar
    6 posts
    Member since:
    Jun 2011

    Posted 12 Oct 2011 Link to this post

    hi  all,

    The  x-axis labels of  chart are  reapeted as 30.12  when  timebar  is  in  yearly view  : 

      when  i select  few  monthly view ( PFA : Monthlyview.jpg) the  x-axis  lables are coming  fine  but  when  i select the  Yearly view( PFA : Yearly.jpg) the x-asis  labels are repeated.

    Please find the xaml code  below  :

    <Grid x:Name="LayoutRoot"
              DataContext="{StaticResource xSalesViewModel}"
                <RowDefinition Height="Auto" />
                <RowDefinition Height="150" />
                <RowDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
            <local:SalesViewModel x:Name="xSalesViewModel" />
            <TextBlock FontFamily="Portable User Interface"
                       Margin="5" />
            <telerik:RadTimeBar x:Name="xRadTimeBar"
                                     PeriodStart="1-Jan-2011" PeriodEnd="1-Jan-2012" 
                                    VisiblePeriodStart="1-Jan-2011" VisiblePeriodEnd="1-Jan-2012" 
                                    SelectionStart="1-Aug-2011" SelectionEnd="30-Sep-2011" 
                    <telerik:YearInterval />
                    <telerik:MonthInterval />
                    <telerik:WeekInterval />
                    <telerik:DayInterval />
                    <telerik:HourInterval />                
                <telerik:RadAreaSparkline ItemsSource="{Binding SalesData}"
                                          Margin="0,8" />
            <telerik:RadChart x:Name="xRadChart"
                              TimeBar="{Binding ElementName=xRadTimeBar}"
                              ItemsSource="{Binding SalesData}"
    Grid.ColumnSpan="2"                          Grid.Row="2"
                            <telerik:AreaSeriesDefinition />
                            <telerik:ItemMapping FieldName="salestotal"
                                                 DataPointMember="YValue" />
                            <telerik:ItemMapping FieldName="datadate"
                                                 DataPointMember="XCategory" />
                            <telerik:ChartDefaultView.ChartLegend >
                                <telerik:ChartLegend Name="legend" Visibility="Collapsed" />
                                <telerik:ChartArea LegendName="legend" x:Name="chartArea"
                                        <telerik:AxisY   />
                                        <telerik:AxisX DefaultLabelFormat="dd.MM" 
                                                  StepLabelLevelHeight="1"  >
                                                <telerik:AxisStyles  />

    Please  let  me  know if any change  is  requried.
  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 17 Oct 2011 Link to this post

    Hello Rajesh,
    This can happen, in case the data entries, visualized by the chart control, differ by less than a day. You can check this, by removing the DefaultLabelFormat setting for the x-axis.

    In case you need additional help with that, please open a formal support ticket and send a simple running project that demonstrates the problem, together with detailed information on the steps I need to follow, in order to reproduce it.

    Best wishes,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top