I Would like to bind title/header beginning of each line of chart from data source.I already binded with required display with legend and it is working fine but i need help to display at beginging of each line series.Please help it..please refer image...
<
telerik:RadCartesianChart.SeriesProvider
>
<
telerik:ChartSeriesProvider
Source
=
"{Binding Data}"
>
<
telerik:ChartSeriesProvider.SeriesDescriptors
>
<
telerik:CategoricalSeriesDescriptor
ItemsSourcePath
=
"LineData"
ValuePath
=
"Value"
CategoryPath
=
"Vector"
>
<
telerik:CategoricalSeriesDescriptor.Style
>
<
Style
TargetType
=
"telerik:StepLineSeries"
>
<
Setter
Property
=
"StrokeThickness"
Value
=
"2"
/>
<
Setter
Property
=
"ShowLabels"
Value
=
"False"
/>
<
Setter
Property
=
"PointTemplate"
Value
=
"{StaticResource LinePointTemplate}"
/>
<
Setter
Property
=
"LegendSettings"
>
<
Setter.Value
>
<
telerik:SeriesLegendSettings
x:Name
=
"l"
Title
=
"{Binding Name}"
/>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"VerticalAxis"
>
<
Setter.Value
>
<
telerik:LinearAxis
Title
=
"{Binding Name}"
LabelTemplate
=
"{StaticResource YLabelTemplate}"
/>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:CategoricalSeriesDescriptor.Style
>
</
telerik:CategoricalSeriesDescriptor
>
</
telerik:ChartSeriesProvider.SeriesDescriptors
>
</
telerik:ChartSeriesProvider
>
</
telerik:RadCartesianChart.SeriesProvider
>
VM .. { ..
public
ObservableCollection<Item> Data {
get
;
set
; }
Data.Add(
new
WaveFormItem()
{
Name =
"105.1"
,
LineData =
new
ObservableCollection<LineDataModel>()
{
new
WaveFormLineData() { Vector = 0, Value = 1.0 },
new
WaveFormLineData() { Vector = 1, Value = 1.1 }
}
});
}
public
class
LineDataModel
{
public
int
Vector {
get
;
set
; }
public
double
Value {
get
;
set
; }
}
public
class
Item
{
public
string
Name {
get
;
set
; }
public
ObservableCollection<LineDataModel> LineData {
get
;
set
; }
}