Hi,
I'm trying to make a graph with 3 bars that each bar is connected to a specific legend.
For some reason, I get 3 bars for each x axis item.
I'm probably doing something wrong.
Avi
<
telerik:RadChart
Margin
=
"0,0,-108,-34"
ItemsSource
=
"{Binding Data}"
>
<
telerik:RadChart.DefaultView
>
<
telerik:ChartDefaultView
>
<
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartLegend
x:Name
=
"chartLegend"
UseAutoGeneratedItems
=
"True"
/>
</
telerik:ChartDefaultView.ChartLegend
>
<
telerik:ChartDefaultView.ChartArea
>
<
telerik:ChartArea
LabelFormatBehavior
=
"None"
LegendName
=
"chartLegend"
Visibility
=
"Visible"
>
<
telerik:ChartArea.DataSeries
>
<
telerik:DataSeries
>
<
telerik:DataSeries.Definition
>
<
telerik:BarSeriesDefinition
LegendDisplayMode
=
"DataPointLabel"
ShowItemLabels
=
"True"
Visibility
=
"Visible"
/>
</
telerik:DataSeries.Definition
>
</
telerik:DataSeries
>
</
telerik:ChartArea.DataSeries
>
<
telerik:ChartArea.AxisX
>
<
telerik:AxisX
Title
=
"x name"
/>
</
telerik:ChartArea.AxisX
>
<
telerik:ChartArea.AxisY
>
<
telerik:AxisY
Title
=
"y name"
AutoRange
=
"False"
MaxValue
=
"30000"
MinorTickPointMultiplier
=
"5"
Step
=
"1000"
/>
</
telerik:ChartArea.AxisY
>
</
telerik:ChartArea
>
</
telerik:ChartDefaultView.ChartArea
>
</
telerik:ChartDefaultView
>
</
telerik:RadChart.DefaultView
>
<
telerik:RadChart.SeriesMappings
>
<
telerik:SeriesMapping
LegendLabel
=
"label_1"
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Amount"
/>
<
telerik:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"TypeAmount"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
LegendLabel
=
"label_2"
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Amount"
/>
<
telerik:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"TypeAmount"
/>
</
telerik:SeriesMapping
>
<
telerik:SeriesMapping
LegendLabel
=
"label_3"
>
<
telerik:ItemMapping
DataPointMember
=
"YValue"
FieldName
=
"Amount"
/>
<
telerik:ItemMapping
DataPointMember
=
"XCategory"
FieldName
=
"TypeAmount"
/>
</
telerik:SeriesMapping
>
</
telerik:RadChart.SeriesMappings
>
</
telerik:RadChart
>