Xceed Chart for WinForms v4.4 Documentation
GapPercent Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > BarSeries Class : GapPercent Property
Controls the gap between the bars in percents of the floor grid cell width.
Syntax
'Declaration
 
<CategoryAttribute("Options")>
<DefaultValueAttribute()>
<DescriptionAttribute("Controls the gap between the bars in percents of the floor grid cell width.")>
Public Property GapPercent As Integer
'Usage
 
Dim instance As BarSeries
Dim value As Integer
 
instance.GapPercent = value
 
value = instance.GapPercent
[Category("Options")]
[DefaultValue()]
[Description("Controls the gap between the bars in percents of the floor grid cell width.")]
public int GapPercent {get; set;}
Remarks
By default set to 0 (no gap).
Example
The following example creates a gap between the adjacent bars of a cluster bar chart.
Dim bar1 As BarSeries =  Chart.Series.Add(SeriesType.Bar) 
Dim bar2 As BarSeries =  Chart.Series.Add(SeriesType.Bar) 
bar2.MultiBarMode = MultiBarMode.Clustered
bar1.GapPercent = 10
bar2.GapPercent = 10
BarSeries bar1 = Chart.Series.Add(SeriesType.Bar);
BarSeries bar2 = Chart.Series.Add(SeriesType.Bar);
bar2.MultiBarMode = MultiBarMode.Clustered;
bar1.GapPercent = 10;
bar2.GapPercent = 10;
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BarSeries Class
BarSeries Members