Page 1 of 1

Y Axis Title overlaps Labels

Posted: Thu Nov 15, 2018 12:54 am
by 15684534
On my code I have the Y Axis Title overlapping the labels sometimes. It depends on the size of the labels.
What is the recommended way of fixing this?
I am using the latest TeeChart from nuget version 4.2018.10.27.

Re: Y Axis Title overlaps Labels

Posted: Thu Nov 15, 2018 8:29 am
by Christopher
Hello -

yes, this behaviour is by design and can be modified by setting the FixedLabelSize property to false, as in the following example:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Series.Add(typeof(Line)).FillSampleValues();

      tChart1.Axes.Left.Title.Text = "YAxis Title";
      tChart1.Axes.Left.Title.Angle = 90;
    }

    private void button2_Click(object sender, EventArgs e)
    {
      int count = tChart1[0].Count;
      tChart1[0].Clear();

      Random rnd = new Random();

      for (int i = 0; i < count; i++)
      {
        tChart1[0].Add(rnd.Next(100000, 1000000));
      }

      //tChart1.Axes.Left.FixedLabelSize = false;
    }

Re: Y Axis Title overlaps Labels

Posted: Fri Nov 16, 2018 2:21 am
by 15684534
Thank you it fixed it. :D