This question is locked. New answers and comments are not allowed.
I'm working with the new Horizontal Range Bar Chart (http://demos.telerik.com/silverlight/#Chart/Gallery/RangeBar) and I'd like to bind the Low/High to DateTime properties. Is this possible? As I have it now, I get an invalid cast exception.
Also, I'd like to have each bar a separate color. All of the bars are the same color since they are part of the same series. Is there a way around this or a recommendation for using a separate series for each data item?
Thanks.
Josh
<telerikChart:RadChart x:Name="dateChart" Grid.Column="1" ItemsSource="{Binding DateCollection}" BorderThickness="0" Background="Transparent"> <telerikChart:RadChart.SeriesMappings> <telerikCharting:SeriesMapping LegendLabel="DateRanges"> <telerikCharting:SeriesMapping.SeriesDefinition> <telerikCharting:HorizontalRangeBarSeriesDefinition/> </telerikCharting:SeriesMapping.SeriesDefinition> <telerikCharting:ItemMapping DataPointMember="Low" FieldName="StartDate" /> <telerikCharting:ItemMapping DataPointMember="High" FieldName="EndDate" /> </telerikCharting:SeriesMapping> </telerikChart:RadChart.SeriesMappings> <telerikChart:RadChart.DefaultView> <telerikCharting:ChartDefaultView> <telerikCharting:ChartDefaultView.ChartLegend> <telerikCharting:ChartLegend Visibility="Collapsed"/> </telerikCharting:ChartDefaultView.ChartLegend> <telerikCharting:ChartDefaultView.ChartArea> <telerikCharting:ChartArea NoDataString="No Data Available"/> </telerikCharting:ChartDefaultView.ChartArea> </telerikCharting:ChartDefaultView> </telerikChart:RadChart.DefaultView></telerikChart:RadChart>Also, I'd like to have each bar a separate color. All of the bars are the same color since they are part of the same series. Is there a way around this or a recommendation for using a separate series for each data item?
Thanks.
Josh