TAChart: extent in TFitSeries is not calculated properly
Original Reporter info from Mantis: Marcin Wiazowski
-
Reporter name:
Original Reporter info from Mantis: Marcin Wiazowski
- Reporter name:
Description:
The extent returned for TFitSeries is:
function TFitSeries.Extent: TDoubleRect;
begin
Result := Source.BasicExtent;
end;
so it's only based on data points - it doesn't take into account a shape of the curve.
I made some experiments, so I'm attaching a test application and experiment.diff.
Important: after applying the patch and launching the test application, curves are still not drawn fully properly - it is needed to minimize and restore the application, so charts are repainted.
I don't know if the attached code works properly with the DrawFitRangeOnly / FitRange functionality.