Defines the fluent interface for configuring the chart labels.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TBuilder
Syntax:
public abstract class ChartLabelsBuilderBase<TBuilder> where TBuilder : ChartLabelsBuilderBase<TBuilder>
Inheritance: objectChartLabelsBuilderBase<TBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the ChartLabelsBuilderBase<TBuilder> class.
public ChartLabelsBuilderBase(ChartLabels chartLabels)
The labels configuration.
Methods
The template which renders the ARIA label for the series labels.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..
public TBuilder AriaTemplate(string value)
The value for AriaTemplate
Returns:TBuilder
The template which renders the ARIA label for the series labels.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..
public TBuilder AriaTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the ariatemplate.
Returns:TBuilder
The template which renders the ARIA label for the series labels.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..
public TBuilder AriaTemplateHandler(string templateHandler)
The handler that returs the template for AriaTemplate
Returns:TBuilder
The template which renders the ARIA label for the series labels.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..
public TBuilder AriaTemplateId(string templateId)
The ID of the template element for AriaTemplate
Returns:TBuilder
The template which renders the ARIA label for the series labels.The fields which can be used in the template are: category - the category name. Available for area, bar, column, bubble, donut, line and pie series.; dataItem - the original data item used to construct the point. Will be null if binding to array.; percentage - the point value represented as a percentage value. Available only for 100% stacked charts.; series - the data series or value - the point value. Can be a number or object containing each bound field..
public TBuilder AriaTemplateView(MvcHtmlString templateView)
The view that contains the template for AriaTemplate
Returns:TBuilder
Sets the labels background color
public TBuilder Background(string background)
The labels background color.
Returns:TBuilder
Configures the labels border
public TBuilder Border(Action<ChartBorderBuilder> configurator)
The border configuration action
Returns:TBuilder
Sets the labels border
public TBuilder Border(int width, string color, ChartDashType dashType)
The labels border width.
colorstringThe labels border color (CSS syntax).
dashTypeChartDashTypeThe labels border dash type.
Returns:TBuilder
Sets the labels text color
public TBuilder Color(string color)
The labels text color.
Returns:TBuilder
Sets the labels font
public TBuilder Font(string font)
The labels font (CSS format).
Returns:TBuilder
Sets the labels format.
Sets the labels margin
Sets the labels opacity.
public TBuilder Opacity(double opacity)
The series opacity in the range from 0 (transparent) to 1 (opaque). The default value is 1.
Returns:TBuilder
Sets the labels padding
Sets the labels text rotation
public TBuilder Rotation(int rotation)
The labels text rotation.
Returns:TBuilder
Sets the labels template.
public TBuilder Template(string template)
The labels template.
Returns:TBuilder
Sets the labels visibility
public TBuilder Visible(bool visible)
The labels visibility.
Returns:TBuilder
Sets the function used to set the labels visibility.
public TBuilder VisibleHandler(string visibleFunction)
The JavaScript function that will be executed to retrieve the visible state of each label.
Returns:TBuilder
Sets the labels visual handler
public TBuilder Visual(string handler)
The JavaScript visual handler name.
Returns:TBuilder