Page 1 of 1

Y axis label title and values super imposed

Posted: Wed Mar 03, 2021 9:41 am
by 15690617
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 6732 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 6721 times
.

Re: Y axis label title and values super imposed

Posted: Thu Mar 04, 2021 9:34 am
by Christopher
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.

Re: Y axis label title and values super imposed

Posted: Thu Mar 04, 2021 10:32 am
by 15690617
Thank you very much Christopher for your support. It is working perfectly now.