ChartPaneDefaultsBuilder
Methods
Background(System.String)
The background color of all chart panes. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Background
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Background("lightgreen"))
)
Border(System.Action)
The border of all chart panes.
Parameters
configurator - System.Action<ChartBorderBuilder>
The configurator for the border setting.
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Border(border => border.Color("red"))
)
Clip(System.Boolean)
Specifies whether the charts in the panes should be clipped. By default all charts except radar, polar and 100% stacked charts are clipped.
Parameters
value - System.Boolean
The value for Clip
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Clip(true))
)
Height(System.Double)
The default pane height in pixels.
Parameters
value - System.Double
The value for Height
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Height(300))
)
Margin(System.Int32,System.Int32,System.Int32,System.Int32)
The margin of the panes. A numeric value will set all margins.
Parameters
top - System.Int32
The title top margin.
right - System.Int32
The title right margin.
bottom - System.Int32
The title bottom margin.
left - System.Int32
The title left margin.
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Margin(10, 5, 10, 5))
)
Margin(System.Int32)
The margin of the panes. A numeric value will set all margins.
Parameters
margin - System.Int32
The title margin.
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Margin(10))
)
Padding(System.Int32,System.Int32,System.Int32,System.Int32)
The padding of the panes. A numeric value will set all paddings.
Parameters
top - System.Int32
The title top padding.
right - System.Int32
The title right padding.
bottom - System.Int32
The title bottom padding.
left - System.Int32
The title left padding.
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Padding(10, 5, 10, 5))
)
Padding(System.Int32)
The padding of the panes. A numeric value will set all paddings.
Parameters
padding - System.Int32
The title padding.
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Padding(10))
)
Title(System.Action)
The title configuration of the all panes.
Parameters
configurator - System.Action<ChartTitleBuilder>
The configuration action.
Example
@(Html.Kendo().Chart()
.Name("chart")
.PaneDefaults(paneDefaults => paneDefaults.Title(title => title.Color("red"))
)