Y axis label title and values super imposed

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Vineeth
Newbie
Newbie
Posts: 2
Joined: Thu Feb 04, 2021 12:00 am

Y axis label title and values super imposed

Post by Vineeth » Wed Mar 03, 2021 9:41 am

The Y- axis label title and values are overlapping. While loading initial time the position of label title and label values are correct. When I change the Y-axis unit or selecting another component , the position of label title is same, not getting relocated. Due to this issue my label title and values are getting superimposed. PFA for the issue details.
TeeChartIssue.jpg
TeeChartIssue.jpg (9.05 KiB) Viewed 7272 times
I am using Steema.TeeChart.WPF.TChart, TeeChart.WPF
Release Notes 12th May 2016
Build 4.1.2016.05120

I found the same issue in TeeChart example as well, while increasing the Left Axis maximum value to a large number
TeechartDemo.png
TeechartDemo.png (26.68 KiB) Viewed 7261 times
.

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

Re: Y axis label title and values super imposed

Post by Christopher » Thu Mar 04, 2021 9:34 am

Hello!

The solution to this one is to set the FixedLabelSize property to false, e.g.

Code: Select all

    private void InitializeChart(TChart chart)
    {
      var line = new Steema.TeeChart.WPF.Styles.Line(chart.Chart);
      line.FillSampleValues();
      chart.Axes.Left.Title.Text = "Left Axis Title";
    }

    private void button1_Click(object sender, RoutedEventArgs e)
    {
      tChart1.Axes.Left.FixedLabelSize = false;
      tChart1.Axes.Left.SetMinMax(0, 100000);
    }
The FixedLabelSize property is default true as a performance optimization to stop the size of the axis labels being recalculated on every repaint.
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

Vineeth
Newbie
Newbie
Posts: 2
Joined: Thu Feb 04, 2021 12:00 am

Re: Y axis label title and values super imposed

Post by Vineeth » Thu Mar 04, 2021 10:32 am

Thank you very much Christopher for your support. It is working perfectly now.

Post Reply