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.
Y Axis Title overlaps Labels
Y Axis Title overlaps Labels
- Attachments
-
- Y Axis Title Overlap.jpg (28.08 KiB) Viewed 8224 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Y Axis Title overlaps Labels
Hello -
yes, this behaviour is by design and can be modified by setting the FixedLabelSize property to false, as in the following example:
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;
}
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 |
Re: Y Axis Title overlaps Labels
Thank you it fixed it.