How Can Use RangeBarSeries inside CategoricalSeriesDescriptor

2 posts, 0 answers
  1. jk
    jk avatar
    1 posts
    Member since:
    Mar 2016

    Posted 24 Mar Link to this post

    i want add RangeBarSeries in CategoricalSeriesDescriptor.

    This is possible?

  2. Dinko
    Dinko avatar
    182 posts

    Posted 28 Mar Link to this post

    Hi Jk Sung,

    Yes, this is possible. With our latest official release (Telerik UI for WPF Q1 2016), we made it possible to use the series provider and create any series, including range bar series, without using specific series descriptor. Basically, you can define a ChartSeriesDescriptor and create a custom style whose TargetType is set to telerik:RangeBarSeries. 
      <telerik:ChartSeriesProvider Source="{Binding Data}">                  
     <telerik:ChartSeriesDescriptor ItemsSourcePath="SaleInfoData">
         <Style TargetType="telerik:RangeBarSeries">                                  <Setter Property="LowBinding" Value="LowValue"/>
           <Setter Property="HighBinding" Value="HighValue"/>
           <Setter Property="CategoryBinding" Value="MonthName"/>
       </telerik:ChartSeriesDescriptor.Style>                             </telerik:ChartSeriesDescriptor>
    For your convenience, we have created a sample project where you can see how to implement this approach

    Hope this information is useful.

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