TChart margin lazarus / 55-TAChart ---------------------------------------------------------------------- wp · 2011-07-11 21:42 TChart has no adjustable margin between the chart area and the client rect edges. This can cause truncation of long axis labels as shown in the attached screenshot (the x axis maximum should be 1000, but is truncated to 100). Could you provide a corresponding property to modify the distance between the axes and the border? Optionally it would be great if the length of the outermost axis labels would be taken into account automatically when defining the chart rectangle. ---------------------------------------------------------------------- Ask · 2011-07-12 07:18 QuoteTChart has no adjustable margin between the chart area and the client rect edges.Note that BorderSpacing fills similar role, although of course it does not help with truncation issue. QuoteCould you provide a corresponding property to modify the distance between the axes and the border?That's easy part, see MarginsExternal since r31672. QuoteOptionally it would be great if the length of the outermost axis labels would be taken into account automatically when defining the chart rectangle.That's harder to do. Will think about it. ---------------------------------------------------------------------- wp · 2011-07-13 10:35 Very nice. MarginsExternal is what I needed. Thank you. Of course, the automatic solution would be fine as well. ---------------------------------------------------------------------- Ask · 2011-07-16 18:23 Quote from: wp on July 13, 2011, 12:35:41 pmthe automatic solution would be fine as well. Implemented in r31708, r31709, r31712, r31713, r31714. The code is rather complex, so please test and review if you can. ---------------------------------------------------------------------- wp · 2011-07-17 11:04 After playing around a bit, it seems to run prefectly. Excellent! Thank you.