No Data Series error when using custom layout for RadChart

3 posts, 0 answers
  1. D Warren
    D Warren avatar
    10 posts
    Member since:
    Jul 2012

    Posted 26 Apr 2011 Link to this post

    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

     

     

  2. D Warren
    D Warren avatar
    10 posts
    Member since:
    Jul 2012

    Posted 26 Apr 2011 Link to this post

    I made a mistake. This belongs in the WPF Chart forum. Sorry about that.
    http://www.telerik.com/community/forums/wpf/chart/no-data-series-error-when-using-custom-layout-for-radchart.aspx

    Regards,
    Danny
  3. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 29 Apr 2011 Link to this post

    Hi D Warren,

    Your question was answered in the other forum thread started by you. If you have additional questions please send them in a single thread so that it is easier for both sides to follow it.

    Kind regards,
    Evgenia
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top