Clear the TChart Control Display
Clear the TChart Control Display
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?
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Clear the TChart Control Display
Hello,
Yes, those elements are the Header and the Top and Bottom Axes, and can be modified e.g.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?
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 |