TAChart: patch to reflect original data source properly
Original Reporter info from Mantis: Marcin Wiazowski
-
Reporter name:
Original Reporter info from Mantis: Marcin Wiazowski
- Reporter name:
Description:
I'm attaching a patch for TCalculatedChartSource and TCustomAnimatedChartSource, that allows them to reflect properties of their origins properly.
TCalculatedChartSource:
-
Added fix for resetting FYXount in Changed() properly
-
Data sources using the origin should have their FXCount and FYCount set to 0, when origin is not assigned. And this is implemented, with one omission: initially there is no origin attached, so FXCount and FYCount should be initialized to 0 in the constructor (since they are set to 1 in the inherited constructor).
TCustomAnimatedChartSource:
-
In Changed(), code for reflecting the origin properly was added - which is similar to 1)
-
As in 2)
-
Changing the origin should update the reflected origin state - so lacking call to Changed() was added in SetOrigin()