Page 1 of 1

Clear the TChart Control Display

Posted: Wed Aug 17, 2016 5:40 pm
by 15678922
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?

Re: Clear the TChart Control Display

Posted: Thu Aug 18, 2016 11:08 am
by Christopher
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;
    }