MindFusion.Charting Programmer's Guide

BarChart.DistBtwBars Property

See Also
 





Gets or sets the distance between bars in a bar chart.

Namespace: MindFusion.Charting.WebForms
Assembly: MindFusion.Charting.WebForms

 Syntax

C#  Copy Code

public float DistBtwBars { get; }

Visual Basic  Copy Code

Public ReadOnly Property DistBtwBars As Single

 Property Value

A float value that specifies the distance between two adjacent bars.

 Remarks

The property specifies the distance between bars - alone or in a group. The width of the bars is set with BarWidth. If the bars are drawn in clusters or groups, DistBtwSeries  specifies the distance between the groups. The layout of the bars in groups is set with BarSeriesLayout.

If the bar width and the distance between the bars and bar groups/clusters is not set, the control calculates them automatically, according to the length of the axis, at which the bars are drawn. If it is also not set, the bars are drawn with width 20 and distance between them 10.

Default value for the DistBtwBars property is 10.

 See Also