TBoxAndWhiskerSeries cannot use different color on each point for box border, whiskers and median
- Lazarus/FPC Version: 2.2.0RC1 r65419 FPC 3.2.2 x86_64-win64-win32/win64
- Operating System: Windows 7
- CPU / Bitness: 64
Each point has the same color for box border, whiskers and median.
What did you expect
Each point can optionally use Source[i]^.Color for BoxPen, WhiskerPen and MedianPen. This is related to #39615 (closed) because if a box is so thin that its BoxBrush.Color is not visible, then BoxPen.Color needs to be (optionally) set to Source[i]^.Color.
Steps to reproduce
Create a TBoxAndWhiskerSeries and fill it with so many points (e.g. 1000) that some (all) boxes become so thin that BoxBrush.Color becomes invisible. If BoxPen.Style <> psClear, then BoxPen.Color is visible but is equal for all points which is not desired. Solution: if (Source[i]^.Color <> clTAColor) and (BoxPen.Color = clTAColor) then set BoxPen.Color to Source[i]^.Color. Do analog for WhiskerPen and MedianPen.
The detailed view of the original shows BoxBrush.Color using Source[i]^.Color and the BoxPen.Color.
When zooming out, the boxes become so thin that BoxBrush.Color becomes invisible and only BoxPen.Color is visible.
The fixed version uses BoxPen.Color clDefault which causes it to use Source[i]^.Color (also for BoxBrush.Color).