Finding and settin plot width lazarus / 55-TAChart ---------------------------------------------------------------------- mtanner · 2021-01-05 08:45 I have a simple TChart, with a TShape underneath. I want to align the left and right of the TShape with the left/right of the TChart plot area (that is excluding the vertical scale labels). Is there a simple way of finding/setting the width of the TChart plot area? ---------------------------------------------------------------------- wp · 2021-01-05 10:09 There is a Chart.ClipRect, but this may change while the chart is drawn. The safest way, in my opinion, is to use the chart's CurrentExtent and convert it to screen coordinates. The CurrentExtent is a TDoubleRect defined by the left/bottom and right/top intersection of the axis lines. Units are the internal "graph" units which are mostly equal to the units plotted on the axes. Conversion can be done by the chart's GraphToImage functions. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i uses  TAChartUtils;  // for TDoubleRect; function GetChartAxisRect(AChart: TChart): TRect;var  ext: TDoubleRect;begin  ext := AChart.CurrentExtent;  Result.Left := AChart.XGraphToImage(ext.a.x);  Result.Right := AChart.XGraphToImage(ext.b.x);  Result.Top := AChart.YGraphToImage(ext.b.y);  Result.Bottom := AChart.YGraphToImage(ext.a.y);end;