Search code examples
delphiteechart

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


Solution

  • 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