Centered legend in TAChart lazarus / 55-TAChart ---------------------------------------------------------------------- wp · 2011-03-22 11:40 How can i center the legend above or below a chart? It would be nice to have options "laTopCenter" or "laBottomCenter" for this purpose. ---------------------------------------------------------------------- Ask · 2011-03-22 20:23 Implemented in r29985 See legend demo for an example. ---------------------------------------------------------------------- wp · 2011-03-22 23:06 Thanks a lot. I'll give it a try as soon as I can. TAChart is getting better and better! ---------------------------------------------------------------------- wp · 2011-03-23 09:50 Works fine - thank you. There is one small thing which is a bit annoying, though: If UseSidebar is false the legend may overlap with the axis (e.g. Alignment = laCenterLeft, UseSidebar = false --> overlap with left axis). Of course I can correct this by adjustment of the margin parameters - but these may have to be adapted when axis labeling changes. It would be more convenient if the legend position for UseSidebar=false would be within the rectangle spanned by the axes, not within the entire diagram rect. By the way: what is ClipRect? ---------------------------------------------------------------------- Ask · 2011-03-23 11:17 QuoteIt would be more convenient if the legend position for UseSidebar=false would be within the rectangle spanned by the axes, not within the entire diagram rect. Hmm, now you can work around the problem, but if I will change it, and some user wants current behaviour, he will have no way to achieve it. And I am not sure this change deserves yet another option. So, I need to think about it -- maybe there is some more general setting that can be implemented instead. You can create a feature request on the bug tracker to make sure this issue will not be forgotten. Quotewhat is ClipRect?It is a property that returns the rectangle inside of which TAChart is *currently* drawing. Note that it changes during the drawing process, so it is mainly useful for the chart events and interactive tools.