TCustomBarSeries.ApplyBarOffset
TCustomBarSeries
function ApplyBarOffset(Position: Integer): Integer;
Unit
Series
Description
The ApplyBarOffset function modifies and returns the Position parameter. BarSeries have an OffsetPercent property that makes all Bars to be displayed horizontally a specific amount of pixels based on Bar's width.
The Position parameter must be expressed in screen pixels.
The formula used is:
result:= Position + Round( OffsetPercent * BarWidth / 100.0 )
When OffsetPercent property is zero (the default), the Position parameter is returned unmodified.