SparklineBuilder<T>
Defines the fluent interface for configuring the Sparkline<T> component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class SparklineBuilder<T> : WidgetBuilderBase<Sparkline<T>, SparklineBuilder<T>>, IHtmlString where T : class
Inheritance: objectWidgetBuilderBase<Sparkline<T>, SparklineBuilder<T>>SparklineBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the SparklineBuilder<T> class.
Methods
Enables or disables automatic binding.
public SparklineBuilder<T> AutoBind(bool autoBind)
Gets or sets a value indicating if the chart should be data bound during initialization. The default value is true.
Returns:Defines the options for all chart axes of the specified type.
public SparklineBuilder<T> AxisDefaults(Action<ChartAxisDefaultsBuilder<T>> configurator)
The configurator.
Returns:Configures the category axis
public SparklineBuilder<T> CategoryAxis(Action<ChartCategoryAxisBuilder<T>> configurator)
The configurator
Returns:Sets the Chart area.
public SparklineBuilder<T> ChartArea(Action<ChartAreaBuilder> configurator)
The Chart area.
Returns:Sets the Sparkline data.
public virtual SparklineBuilder<T> Data(double data)
The data for the default Sparkline series.
Returns:Sets the Sparkline data.
public virtual SparklineBuilder<T> Data(IEnumerable data)
The data for the default Sparkline series.
Returns:Data Source configuration
public SparklineBuilder<T> DataSource(Action<ReadOnlyAjaxDataSourceBuilder<T>> configurator)
Use the configurator to set different data binding options.
Returns:Configures the client-side events.
public SparklineBuilder<T> Events(Action<ChartEventBuilder> configurator)
The client events configuration action.
Returns:Sets the Plot area.
public SparklineBuilder<T> PlotArea(Action<PlotAreaBuilder> configurator)
The Plot area.
Returns:Sets the per-point width of the sparkline.
public SparklineBuilder<T> PointWidth(double pointWidth)
The Sparkline per-point width.
Returns:Sets the preferred rendering engine. If it is not supported by the browser, the Chart will switch to the first available mode.
public SparklineBuilder<T> RenderAs(RenderingMode renderAs)
The preferred rendering engine.
Returns:Defines the chart series.
public SparklineBuilder<T> Series(Action<SparklineSeriesFactory<T>> configurator)
The add action.
Returns:Sets the series colors.
public SparklineBuilder<T> SeriesColors(IEnumerable<string> colors)
A list of the series colors.
Returns:Sets the series colors.
public SparklineBuilder<T> SeriesColors(params string[] colors)
The series colors.
Returns:Defines the options for all chart series of the specified type.
public SparklineBuilder<T> SeriesDefaults(Action<SparklineSeriesDefaultsBuilder<T>> configurator)
The configurator.
Returns:Sets the theme of the chart.
public SparklineBuilder<T> Theme(string theme)
The Sparkline theme.
Returns:Use it to configure the data point tooltip.
public SparklineBuilder<T> Tooltip(Action<ChartTooltipBuilder> configurator)
Use the configurator to set data tooltip options.
Returns:Sets the data point tooltip visibility.
public SparklineBuilder<T> Tooltip(bool visible)
A value indicating if the data point tooltip should be displayed. The tooltip is not visible by default.
Returns:Enables or disabled animated transitions on initial load and refresh.
public SparklineBuilder<T> Transitions(bool transitions)
A value indicating if transition animations should be played.
Returns:Sets the type of the sparkline.
public SparklineBuilder<T> Type(SparklineType type)
The Sparkline type.
Returns:Defines value axis options
public SparklineBuilder<T> ValueAxis(Action<ChartValueAxisFactory<T>> configurator)
The configurator
Returns: