Annotation Not Working Correctly

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
phil1995
Newbie
Newbie
Posts: 31
Joined: Fri Dec 16, 2005 12:00 am
Location: Hattiesburg, Ms.
Contact:

Annotation Not Working Correctly

Post by phil1995 » Mon Aug 08, 2011 7:32 pm

I have recently upgraded from an older version and am having issues with the Annotation. I used to write the code as shown below:

Dim Annotation1 As New Steema.TeeChart.Tools.Annotation(qualityratiochart.Chart)
Annotation1.Active = True
Annotation1.Shape.Color = Drawing.Color.Transparent
Annotation1.Shape.CustomPosition = True
Annotation1.Left = 200
Annotation1.Top = 200
Annotation1.Text = "TEST"

This code doesnt seem to work now, it just places the annotation in the top left corner, with no text associated with it.

Help!!!

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Annotation Not Working Correctly

Post by Sandra » Tue Aug 09, 2011 11:50 am

Hello phil1995,

I couldn't reproduce your problem using next code and last version of TeeChart.Net:

Code: Select all

 Public Sub New()

        ' This call is required by the Windows Form Designer.
        InitializeComponent()
        InitializeChart()

        ' Add any initialization after the InitializeComponent() call.

    End Sub
    Private Sub InitializeChart()
        Dim line1 As New Steema.TeeChart.Styles.Line(TChart1.Chart)
        line1.FillSampleValues()

        Dim Annotation1 As New Steema.TeeChart.Tools.Annotation(TChart1.Chart)

        Annotation1.Active = True
        Annotation1.Shape.Color = Color.Transparent
        Annotation1.Shape.CustomPosition = True
        Annotation1.Left = 200
        Annotation1.Top = 200
        Annotation1.Text = "TEST"
    End Sub
Could you please, tell us if your problem appears using previous code?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply