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

Defines the fluent API for configuring ChartPane

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class ChartPaneBuilder<T> where T : class

Inheritance: objectChartPaneBuilder<T>

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

Constructors

Initializes a new instance of the ChartPaneBuilder<T> class.

C#
public ChartPaneBuilder(ChartPane<T> container)
Parameters:containerChartPane<T>

The ChartPane<T> container

Properties

Gets the ChartPane<T> container.

C#
protected ChartPane<T> Container { get; }

Methods

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

C#
public ChartPaneBuilder<T> Background(string value)
Parameters:valuestring

The value for Background

Returns:

ChartPaneBuilder<T>

Returns the current ChartPaneBuilder<T> instance.

The border of the chart pane.

C#
public ChartPaneBuilder<T> Border(Action<ChartPaneBorderSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartPaneBorderSettingsBuilder<T>>

The ChartPaneBorderSettingsBuilder<T> for the border setting.

Returns:

ChartPaneBuilder<T>

Returns the current instance of ChartPaneBuilder<T> .

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

C#
public ChartPaneBuilder<T> Clip(bool value)
Parameters:valuebool

The value for Clip

Returns:

ChartPaneBuilder<T>

Returns the current ChartPaneBuilder<T> instance.

The chart pane height in pixels.

C#
public ChartPaneBuilder<T> Height(double value)
Parameters:valuedouble

The value for Height

Returns:

ChartPaneBuilder<T>

Returns the current ChartPaneBuilder<T> instance.

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

C#
public ChartPaneBuilder<T> Margin(Action<ChartPaneMarginSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartPaneMarginSettingsBuilder<T>>

The ChartPaneMarginSettingsBuilder<T> for the margin setting.

Returns:

ChartPaneBuilder<T>

Returns the current instance of ChartPaneBuilder<T> .

The unique name of the chart pane.

C#
public ChartPaneBuilder<T> Name(string value)
Parameters:valuestring

The value for Name

Returns:

ChartPaneBuilder<T>

Returns the current ChartPaneBuilder<T> instance.

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

C#
public ChartPaneBuilder<T> Padding(Action<ChartPanePaddingSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartPanePaddingSettingsBuilder<T>>

The ChartPanePaddingSettingsBuilder<T> for the padding setting.

Returns:

ChartPaneBuilder<T>

Returns the current instance of ChartPaneBuilder<T> .

The title configuration of the chart pane.

C#
public ChartPaneBuilder<T> Title(Action<ChartPaneTitleSettingsBuilder<T>> configurator)
Parameters:configuratorAction<ChartPaneTitleSettingsBuilder<T>>

The ChartPaneTitleSettingsBuilder<T> for the title setting.

Returns:

ChartPaneBuilder<T>

Returns the current instance of ChartPaneBuilder<T> .

The title configuration of the chart pane.

C#
public ChartPaneBuilder<T> Title(string value)
Parameters:valuestring

The title text.

Returns:

ChartPaneBuilder<T>

Returns the current instance of ChartPaneBuilder<T> .

Example:
C#
@(Html.Kendo().Chart()
.Name("chart")
.Panes(p =&gt;
{
p.Add().Title("title");
})
)