ChartSeriesLabelsToSettingsBuilder
Methods
Background(System.String)
The background color of the to labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Background
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Background("green")
)
)
)
)
BackgroundHandler(System.String)
The background color of the to labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.BackgroundHandler("backgroundHandler")
)
)
)
)
BackgroundHandler(System.Func)
The background color of the to labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.BackgroundHandler(
@<text>
function(e) {
// event handler code
}
</text>
)
)
)
)
)
Border(System.Action)
The border of the to labels.
Parameters
configurator - System.Action<ChartSeriesLabelsToBorderSettingsBuilder>
The configurator for the border setting.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Border(b => b
.Color("red")
)
)
)
)
)
Color(System.String)
The text color of the to labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
value - System.String
The value for Color
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Color("red")
)
)
)
)
ColorHandler(System.String)
The text color of the to labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.ColorHandler("colorHandler")
)
)
)
)
ColorHandler(System.Func)
The text color of the to labels. Accepts a valid CSS color string, including hex and rgb.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.ColorHandler(
@<text>
function(e) {
// event handler code
}
</text>
)
)
)
)
)
Font(System.String)
The font style of the to labels.
Parameters
value - System.String
The value for Font
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Font("14px Arial,Helvetica,sans-serif")
)
)
)
)
FontHandler(System.String)
The font style of the to labels.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.FontHandler("fontHandler")
)
)
)
)
FontHandler(System.Func)
The font style of the to labels.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.FontHandler(
@<text>
function(e) {
// event handler code
}
</text>
)
)
)
)
)
Format(System.String)
The format of the to labels. Uses kendo.format.
Parameters
value - System.String
The value for Format
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Format("{0:C}")
)
)
)
)
FormatHandler(System.String)
The format of the to labels. Uses kendo.format.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Format("formatHandler")
)
)
)
)
FormatHandler(System.Func)
The format of the to labels. Uses kendo.format.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.FormatHandler(
@<text>
function(e) {
// event handler code
}
</text>
)
)
)
)
)
Margin(System.Action)
The margin of the to labels. A numeric value will set all margins.
Parameters
configurator - System.Action<ChartSeriesLabelsToMarginSettingsBuilder>
The configurator for the margin setting.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Margin(m => m
.Bottom(10)
)
)
)
)
)
Padding(System.Action)
The padding of the to labels. A numeric value will set all paddings.
Parameters
configurator - System.Action<ChartSeriesLabelsToPaddingSettingsBuilder>
The configurator for the padding setting.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Padding(p => p
.Top(10)
)
)
)
)
)
Template(System.String)
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values..
Parameters
value - System.String
The value for Template
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Template("#=FromSales#")
)
)
)
)
TemplateId(System.String)
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values..
Parameters
templateId - System.String
The ID of the template element for Template
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.TemplateId("templateId")
)
)
)
)
TemplateView(System.Web.Mvc.MvcHtmlString)
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values..
Parameters
value - System.Web.Mvc.MvcHtmlString
Example
"))
)
)
)
)
TemplateHandler(System.String)
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values..
Parameters
templateHandler - System.String
The handler that returs the template for Template
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.TemplateHandler("templateHandler")
)
)
)
)
Template(Kendo.Mvc.UI.TemplateBuilder)
The template which renders the chart series to label.The fields which can be used in the template are: category - the category name.; dataItem - the original data item used to construct the point. Will be null if binding to array.; series - the data series or value - the point value. An object containing from and to values..
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Template("template")
)
)
)
)
Visible(System.Boolean)
If set to true the chart will display the series to labels. By default chart series to labels are not displayed.
Parameters
value - System.Boolean
The value for Visible
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Visible("true")
)
)
)
)
VisibleHandler(System.String)
If set to true the chart will display the series to labels. By default chart series to labels are not displayed.
Parameters
handler - System.String
The name of the JavaScript function that will be evaluated.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.VisibleHandler("visibleHandler")
)
)
)
)
VisibleHandler(System.Func)
If set to true the chart will display the series to labels. By default chart series to labels are not displayed.
Parameters
handler - System.Func<Object,Object>
The handler code wrapped in a text tag.
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.VisibleHandler(
@<text>
function(e) {
// event handler code
}
</text>
)
)
)
)
)
Position(Kendo.Mvc.UI.ChartSeriesLabelsPosition)
Specifies the position of the "to" labels.
Parameters
value - ChartSeriesLabelsPosition
The value for Position
Example
@(Html.Kendo().Chart()
.Name("Chart")
.Series(series => series
.RangeArea(
m => m.FromSales,
m => m.ToSales
)
.Labels(l => l
.To(t => t
.Position(ChartSeriesLabelsPosition.Above)
)
)
)
)