Telerik Extensions for ASP.NET MVC

Sets a value indicating the distance between bars / categories.

Namespace: Telerik.Web.Mvc.UI.Fluent
Assembly: Telerik.Web.Mvc (in Telerik.Web.Mvc.dll) Version: 2012.2.611.235 (2012.2.611.235)

Syntax

C#
public ChartBarSeriesBuilder<T> Spacing(
	double spacing
)
JavaScript
function Spacing(spacing);

Parameters

spacing
Type: System..::..Double
Value of 1 means that the distance between bars is equal to their width. The default value is 0

Examples

CopyC#
<%= Html.Telerik().Chart(Model)
    .Name("Chart")
    .Series(series => series.Spacing(s => s.Sales).Spacing(1))
%>

See Also