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!!!
Annotation Not Working Correctly
Re: Annotation Not Working Correctly
Hello phil1995,
I couldn't reproduce your problem using next code and last version of TeeChart.Net:
Could you please, tell us if your problem appears using previous code?
Thanks,
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
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |