ICustomBarSeries.OffsetPercent
ICustomBarSeries
property OffsetPercent: Integer;
Type Library
TeeChartx
Description
Default: 0
The OffsetPercent property indicates the Bar displacement in percent of Bar size. Displacement is horizontal for BarSeries and vertical for HorizBarSeries. This property can be used to create "overlayed" Bar charts. You can specify positive or negative values.
OffsetPercent Example
This code sets 3 Bar series OffsetPercent to achieve an overlayed Bar chart:
Delphi
TChart1.Series 0 .asBar.OffsetPercent :=25; {% of Bar width}
TChart1.Series 1 .asBar.OffsetPercent :=50; {% of Bar width}
TChart1.Series 2 .asBar.OffsetPercent :=75; {% of Bar width}
Visual Basic
TChart1.Series( 0 ).asBar.OffsetPercent =25 '% of Bar width
TChart1.Series( 1 ).asBar.OffsetPercent =50 '% of Bar width
TChart1.Series( 2 ).asBar.OffsetPercent =75 '% of Bar width