My XAML is as follows
<telerik:RadCartesianChart Name="chart" Palette="Ground" Canvas.Left="20" Width=" 1250" Canvas.Top="130" Height=" 550" Background="White" >
<telerik:RadCartesianChart.HorizontalAxis>
<telerik:CategoricalAxis />
</telerik:RadCartesianChart.HorizontalAxis>
<telerik:RadCartesianChart.VerticalAxis>
<telerik:LinearAxis HorizontalAlignment="Right" />
</telerik:RadCartesianChart.VerticalAxis>
</telerik:RadCartesianChart>
And in the code behind I am adding the series dynamically
Dim style As New Style(GetType(Border))
style.Setters.Add(New Setter(Border.BackgroundProperty, New SolidColorBrush(Colors.LightGray)))
For i As Integer = 0 To ChartDataModel.Data(0).Values.Length - 1
Dim barSeries As New Telerik.Windows.Controls.ChartView.BarSeries()
barSeries.CategoryBinding = New PropertyNameDataPointBinding() With {.PropertyName = "Title"}
Dim k As Integer = i
barSeries.ValueBinding = New GenericDataPointBinding(Of OC_ChartData, Double) With {.ValueSelector = Function(Selector) Selector.Values(k)}
barSeries.SetBinding(ChartSeries.ItemsSourceProperty, New Binding("Data"))
barSeries.CombineMode = Telerik.Charting.ChartSeriesCombineMode.Stack
barSeries.StackGroupKey = "Group" & i.ToString
'If i = 0 Then barSeries.DefaultVisualStyle = style
chart.Series.Add(barSeries)
Next
chart.DataContext = ChartDataModel
1. The color of Series 0 is not set. Can you point what is going wrong
2. I want to have the tool tip to contain the actual Y value. How can I get the Y value of a particular bar.