Clear the TChart Control Display

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
snahdog
Newbie
Newbie
Posts: 2
Joined: Tue Aug 16, 2016 12:00 am

Clear the TChart Control Display

Post by snahdog » Wed Aug 17, 2016 5:40 pm

I am using the TChart control in a form. Before any data is added to the control, it has writing "TeeChart" and 2 horizontal lines on it. How can this appearance be edited?

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Clear the TChart Control Display

Post by Christopher » Thu Aug 18, 2016 11:08 am

Hello,
snahdog wrote:I am using the TChart control in a form. Before any data is added to the control, it has writing "TeeChart" and 2 horizontal lines on it. How can this appearance be edited?
Yes, those elements are the Header and the Top and Bottom Axes, and can be modified e.g.

Code: Select all

    private void InitializeChart()
    {
      tChart1.Header.Text = "Different";
      tChart1.Axes.Top.AxisPen.Color = Color.Red;
      tChart1.Axes.Bottom.Visible = false;
    }
Best Regards,
Christopher Ireland / 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

Post Reply