Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix TChart Axis Margin Delphi

I was a dynamic data, and I want to show it on the same TChart. How can I fix the axis margin with different data?

For Example:

First Data Have a 'thousand' value

enter image description here

Second Data Have a 'hundred' value

enter image description here

I want my TChart have same margin for any value. Thanks in advance

like image 378
Tommy Sayugo Avatar asked Oct 21 '25 16:10

Tommy Sayugo


1 Answers

I think you can set it by forcing the label width to a given value.

TChart1.Axis.Left.Labels.Size := 30;

So that it always stay at the same width.

With the interface it's here

enter image description here

like image 75
HpTerm Avatar answered Oct 23 '25 21:10

HpTerm