Page 1 of 1

Title names and axis variable names out of the chart with TeeChart for .Net

Posted: Thu Jun 22, 2023 8:56 am
by 15695876
Hello,

When I plot data in the chart, the title name goes out of the chart and you can not read it.
Image

The same happens with the variables or labels assigned to the axis.
Image

Is there any way to make TeeChart to respect the text adapting the chart size to it in order to fit everything and make it readable?

Thank you.

Re: Title names and axis variable names out of the chart with TeeChart for .Net

Posted: Thu Jun 22, 2023 4:26 pm
by Christopher
Hello,
David N. wrote:
Thu Jun 22, 2023 8:56 am
When I plot data in the chart, the title name goes out of the chart and you can not read it.
By turning off a default speed optimization to stop the unnecessary recalculation of label sizes, I think you can achieve what you want, e.g.

Code: Select all

        public Form1()
        {
            InitializeComponent();

            var bar = new Bar(tChart1.Chart);

            bar.Add(1, "A long label for bar one");
            bar.Add(10, "A long label for bar one");

            tChart1.Axes.Bottom.FixedLabelSize = false;
        }


        private void button1_Click(object sender, EventArgs e)
        {
            tChart1.Axes.Bottom.Labels.Angle = 45;
        }