This question is locked. New answers and comments are not allowed.
I'm trying to have the Legend lay on top of the chart area. To my understanding the following code should work. I am setting my data in codebehind. If I change the value of UseDefaultLayout to True the chart control displays the correct chart by using the default ChartArea and default ChartLegend etc. However, when I set UseDefaultLayout to False, like in the code below, the ChartArea displays the error No Series Data. The ChartLegend is located at the desired location so I need to know why my data is not being displayed. Please help me understand why this is not working and how to fix it.
<
DataTemplate
x:Key
=
"ChartDataTemplate"
>
<
telerik:RadChart
x:Name
=
"Chart"
UseDefaultLayout
=
"False"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"1*"
/>
<
RowDefinition
Height
=
"19*"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"19*"
/>
<
ColumnDefinition
Width
=
"1*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:ChartLegend
x:Name
=
"LegendArea"
Grid.Row
=
"1"
Grid.Column
=
"0"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Top"
/>
<
telerik:ChartArea
LegendName
=
"LegendArea"
/>
</
Grid
>
</
telerik:RadChart
>
</
DataTemplate
>
Thanks,
Danny