New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring ChartPaneDefaultsSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ChartPaneDefaultsBuilder

Inheritance: objectChartPaneDefaultsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public ChartPaneDefaultsBuilder(ChartPaneDefaults container)
Parameters:containerChartPaneDefaults

Properties

C#
protected ChartPaneDefaults Container { get; }

Methods

The background color of all chart panes. Accepts a valid CSS color string, including hex and rgb.

C#
public ChartPaneDefaultsBuilder Background(string value)
Parameters:valuestring

The value for Background

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Background("lightgreen"))
)

The border of all chart panes.

C#
public ChartPaneDefaultsBuilder Border(Action<ChartBorderBuilder> configurator)
Parameters:configuratorAction<ChartBorderBuilder>

The configurator for the border setting.

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Border(border =&gt; border.Color("red"))
)

Specifies whether the charts in the panes should be clipped. By default all charts except radar, polar and 100% stacked charts are clipped.

C#
public ChartPaneDefaultsBuilder Clip(bool value)
Parameters:valuebool

The value for Clip

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Clip(true))
)

The default pane height in pixels.

C#
public ChartPaneDefaultsBuilder Height(double value)
Parameters:valuedouble

The value for Height

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Height(300))
)

The margin of the panes. A numeric value will set all margins.

C#
public ChartPaneDefaultsBuilder Margin(int top, int right, int bottom, int left)
Parameters:topint

The title top margin.

rightint

The title right margin.

bottomint

The title bottom margin.

leftint

The title left margin.

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Margin(10, 5, 10, 5))
)

The margin of the panes. A numeric value will set all margins.

C#
public ChartPaneDefaultsBuilder Margin(int margin)
Parameters:marginint

The title margin.

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Margin(10))
)

The padding of the panes. A numeric value will set all paddings.

C#
public ChartPaneDefaultsBuilder Padding(int top, int right, int bottom, int left)
Parameters:topint

The title top padding.

rightint

The title right padding.

bottomint

The title bottom padding.

leftint

The title left padding.

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Padding(10, 5, 10, 5))
)

The padding of the panes. A numeric value will set all paddings.

C#
public ChartPaneDefaultsBuilder Padding(int padding)
Parameters:paddingint

The title padding.

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Padding(10))
)

The title configuration of the all panes.

C#
public ChartPaneDefaultsBuilder Title(Action<ChartTitleBuilder> configurator)
Parameters:configuratorAction<ChartTitleBuilder>

The configuration action.

Returns:

ChartPaneDefaultsBuilder

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults =&gt; paneDefaults.Title(title =&gt; title.Color("red"))
)