TCustomBarSeries.ApplyBarOffset
TCustomBarSeries
function ApplyBarOffset(Position: Integer): Integer;
Unit
Series
Description
The ApplyBarOffset function modifies and returns the Position parameter. TCustomBarSeries have an TCustomBarSeries.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( TCustomBarSeries.OffsetPercent * TBarSeries.BarWidth / 100.0 )
When OffsetPercent property is zero (the default), the Position parameter is returned unmodified.