This is a migrated thread and some comments may be shown as answers.

How Can Use RangeBarSeries inside CategoricalSeriesDescriptor

1 Answer 108 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
jk
Top achievements
Rank 1
jk asked on 25 Mar 2016, 04:20 AM
i want add RangeBarSeries in CategoricalSeriesDescriptor.

This is possible?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 28 Mar 2016, 12:51 PM
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 :RangeBarSeries. 
<telerik:RadCartesianChart.SeriesProvider>
  <telerik:ChartSeriesProvider Source="{Binding Data}">                  
<telerik:ChartSeriesProvider.SeriesDescriptors>
 <telerik:ChartSeriesDescriptor ItemsSourcePath="SaleInfoData">
   <telerik:ChartSeriesDescriptor.Style>
     <Style TargetType="telerik:RangeBarSeries">                                  <Setter Property="LowBinding" Value="LowValue"/>
       <Setter Property="HighBinding" Value="HighValue"/>
       <Setter Property="CategoryBinding" Value="MonthName"/>
    </Style>
   </telerik:ChartSeriesDescriptor.Style>                             </telerik:ChartSeriesDescriptor>
 </telerik:ChartSeriesProvider.SeriesDescriptors>
</telerik:ChartSeriesProvider>
</telerik:RadCartesianChart.SeriesProvider>
For your convenience, we have created a sample project where you can see how to implement this approach

Hope this information is useful.

Regards,
Dinko
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ChartView
Asked by
jk
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or