Chart<T>
Kendo UI Chart component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class Chart<T> : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IChart, ISeriesContainer where T : class
Inheritance: objectWidgetBaseChart<T>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the Chart<T> class.
public Chart(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The context for view execution.
initializerIJavaScriptInitializerurlGeneratorIUrlGeneratorThe IUrlGenerator generator.
Properties
Gets or sets a value indicating if the chart should be data bound during initialization.
public bool? AutoBind { get; set; }
Configuration for the default axis
public IChartAxisDefaults AxisDefaults { get; set; }
Configuration for all category axes
public IList<IChartCategoryAxis> CategoryAxes { get; set; }
Gets or sets the Chart area.
public ChartArea ChartArea { get; }
The Chart area.
Gets or sets the data to display in the Chart.
public IEnumerable<T> Data { get; set; }
The data values.
Gets the data source configuration.
public DataSource DataSource { get; }
Gets or sets the id of the external DataSource to use in the Chart.
public string DataSourceId { get; set; }
Gets the Chart ChartHtmlBuilder<T> instance.
protected virtual HtmlBuilderBase HtmlBuilder { get; }
Gets or sets the Chart legend.
public ChartLegend Legend { get; }
The Chart legend.
the localization messages for the Chart.
public ChartMessagesSettings Messages { get; }
The NoData configuration options for the Chart.
public ChartNoDataSettings NoData { get; }
The default options for all panes.
public ChartPaneDefaults PaneDefaults { get; }
Pannble settings
public ChartPannable Pannable { get; }
PDF Export settings
public PDFSettings Pdf { get; }
Gets or sets the PersistSeriesVisibility option.
public bool? PersistSeriesVisibility { get; set; }
The PersistSeriesVisibility value.
Gets or sets the Plot area.
public PlotArea PlotArea { get; }
The Plot area.
Gets or sets the render type.
public RenderingMode? RenderAs { get; set; }
The rendering mode.
Gets the chart series.
public IList<IChartSeries> Series { get; }
Implements:
Gets or sets the series colors.
public IEnumerable<string> SeriesColors { get; set; }
Gets the default settings for all series.
public ChartSeriesDefaults<T> SeriesDefaults { get; }
Gets or sets the Chart subtitle.
public ChartTitle Subtitle { get; }
The Chart subtitle.
Gets or sets the Chart theme.
public string Theme { get; set; }
The Chart theme.
Gets or sets the Chart title.
public ChartTitle Title { get; }
The Chart title.
Gets or sets the data point tooltip options
public ChartTooltip Tooltip { get; set; }
Gets or sets the Chart transitions.
public bool Transitions { get; set; }
The Chart Transitions.
Gets or sets the URL generator.
public IUrlGenerator UrlGenerator { get; }
The URL generator.
Implements:
Configuration for all value axes
public IList<IChartValueAxis> ValueAxes { get; set; }
Gets the widget class name.
protected virtual string WidgetName { get; }
Configuration for all X axes in scatter charts
public IList<IChartValueAxis> XAxes { get; set; }
Configuration for all Y axes in scatter charts
public IList<IChartValueAxis> YAxes { get; set; }
Zoomable settings
public ChartZoomable Zoomable { get; }
Methods
Serializes the Chart options to a Dictionary.
public override IDictionary<string, object> Serialize()
Overrides:
Serializes multiple Dictionary entries to the Chart options Dictionary.
protected void SerializeData(string key, IDictionary<string, object> data, IDictionary<string, object> options)
The Chart options Dictionary key.
dataIDictionary<string, object>The entries to add.
optionsIDictionary<string, object>The Chart options Dictionary.
Serializes the DataSource options to a Dictionary.
protected virtual void SerializeDataSource(IDictionary<string, object> options)
Serializes the Chart persistSeriesVisibity option.
protected void SerializePersistVisibility(IDictionary<string, object> options)
Writes the Chart HTML output.
protected override void WriteHtml(HtmlTextWriter writer)
The text writer instance.
Overrides:
Writes the Chart initialization script.
public override void WriteInitializationScript(TextWriter writer)
The text writer instance.
Overrides: