Sparkline<T>
Class
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
C#
public class Sparkline<T> : Chart<T>, IWidget, IHtmlAttributesContainer, IScriptableComponent, IChart, ISeriesContainer where T : class
Inheritance: objectWidgetBaseChart<T>Sparkline<T>
Implements:
Inherited Members
Constructors
C#
public Sparkline(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Properties
Gets the Chart ChartHtmlBuilder<T> instance.
C#
protected override HtmlBuilderBase HtmlBuilder { get; }
Overrides:
Gets or sets the width to allocate for each point. The default value is 5.
C#
public double? PointWidth { get; set; }
The width to allocate for each point.
Gets or sets the default series data
C#
public IEnumerable SeriesData { get; set; }
Gets or sets the default series type. The default value is SparklineType.Line.
C#
public SparklineType? Type { get; set; }
The default series type.
Gets the widget class name.
C#
protected override string WidgetName { get; }
Overrides:
Methods
Serializes the Chart options to a Dictionary.
C#
public override IDictionary<string, object> Serialize()
Overrides:
Serializes the DataSource options to a Dictionary.
C#
protected override void SerializeDataSource(IDictionary<string, object> options)
Overrides: