This is a migrated thread and some comments may be shown as answers.

ChartArea.Annotations not available?

1 Answer 75 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 16 Feb 2011, 01:29 AM
I have the following in my .xaml and it looks like I have everything I need in place, but I'm receiving an error saying "The attachable property 'Annotations' was not found in type 'ChartArea'?
I'm using the following version of dlls - 2010.1.309.103
Can anyone see anything wrong or maybe it's just this version of dlls I'm using??

<UserControl x:Class="lineChartRetry.MainPage"
    xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"
    xmlns:chart="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
    xmlns:themingToolkit="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.Toolkit"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
  
        <Border Style="{StaticResource NumericBorder}">
            <TextBlock x:Name="txtChartValue" TextAlignment="Center" Foreground="#FAAC58" FontSize="14" FontWeight="Bold" FontFamily="Helvetica, sans-serif"></TextBlock>
        </Border>
        <telerikChart:RadChart x:Name="RadChart1" Grid.Row="1" Grid.Column="0">
            <telerikChart:RadChart.DefaultView>
                <chart:ChartDefaultView>
                    <chart:ChartDefaultView.ChartArea>
                       <chart:ChartArea>
  
                          <chart:ChartArea.Annotations>
                              <chart:CustomGridLine YIntercept="150" Visibility="Visible" Stroke="Red" StrokeThickness="3" ElementStyle="{StaticResource SolidStyle}"/>
                          </chart:ChartArea.Annotations>
                       </chart:ChartArea>
                    </chart:ChartDefaultView.ChartArea>
                </chart:ChartDefaultView>
            </telerikChart:RadChart.DefaultView>
        </telerikChart:RadChart>
    </Grid>
</UserControl>

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 17 Feb 2011, 03:12 PM
Hi Erik,

Our records indicate, that you have opened a support ticket on the same issue. To avoid duplicate posts, we can continue our communication in the support ticket in question.

Kind regards,
Polina
the Telerik team
Tags
Chart
Asked by
Erik
Top achievements
Rank 1
Answers by
Missing User
Share this question
or