New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Kendo UI Chart component

Definition

Constructors

Initializes a new instance of the Chart<T> class.

C#
public Chart(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The context for view execution.

initializerIJavaScriptInitializer

The IJavaScriptInitializer.

urlGeneratorIUrlGenerator

The IUrlGenerator generator.

Properties

Gets or sets a value indicating if the chart should be data bound during initialization.

C#
public bool? AutoBind { get; set; }

Configuration for the default axis

C#
public IChartAxisDefaults AxisDefaults { get; set; }

Configuration for all category axes

C#
public IList<IChartCategoryAxis> CategoryAxes { get; set; }

Gets or sets the Chart area.

C#
public ChartArea ChartArea { get; }
Property Value:

The Chart area.

Gets or sets the data to display in the Chart.

C#
public IEnumerable<T> Data { get; set; }
Property Value:

The data values.

Gets the data source configuration.

C#
public DataSource DataSource { get; }

Gets or sets the id of the external DataSource to use in the Chart.

C#
public string DataSourceId { get; set; }

Gets the Chart ChartHtmlBuilder<T> instance.

C#
protected virtual HtmlBuilderBase HtmlBuilder { get; }

Gets or sets the Chart legend.

C#
public ChartLegend Legend { get; }
Property Value:

The Chart legend.

the localization messages for the Chart.

C#
public ChartMessagesSettings Messages { get; }

The NoData configuration options for the Chart.

C#
public ChartNoDataSettings NoData { get; }

The default options for all panes.

C#
public ChartPaneDefaults PaneDefaults { get; }

Gets the chart panes.

C#
public IList<ChartPane> Panes { get; }

Implements: IChart.Panes

Pannble settings

C#
public ChartPannable Pannable { get; }

PDF Export settings

C#
public PDFSettings Pdf { get; }

Gets or sets the PersistSeriesVisibility option.

C#
public bool? PersistSeriesVisibility { get; set; }
Property Value:

The PersistSeriesVisibility value.

Gets or sets the Plot area.

C#
public PlotArea PlotArea { get; }
Property Value:

The Plot area.

Gets or sets the render type.

C#
public RenderingMode? RenderAs { get; set; }
Property Value:

The rendering mode.

Gets the chart series.

C#
public IList<IChartSeries> Series { get; }

Implements: ISeriesContainer.Series

Gets or sets the series colors.

C#
public IEnumerable<string> SeriesColors { get; set; }

Gets the default settings for all series.

C#
public ChartSeriesDefaults<T> SeriesDefaults { get; }

Gets or sets the Chart subtitle.

C#
public ChartTitle Subtitle { get; }
Property Value:

The Chart subtitle.

Gets or sets the Chart theme.

C#
public string Theme { get; set; }
Property Value:

The Chart theme.

Gets or sets the Chart title.

C#
public ChartTitle Title { get; }
Property Value:

The Chart title.

Gets or sets the data point tooltip options

C#
public ChartTooltip Tooltip { get; set; }

Gets or sets the Chart transitions.

C#
public bool Transitions { get; set; }
Property Value:

The Chart Transitions.

Gets or sets the URL generator.

C#
public IUrlGenerator UrlGenerator { get; }
Property Value:

The URL generator.

Implements: IChart.UrlGenerator

Configuration for all value axes

C#
public IList<IChartValueAxis> ValueAxes { get; set; }

Gets the widget class name.

C#
protected virtual string WidgetName { get; }

Configuration for all X axes in scatter charts

C#
public IList<IChartValueAxis> XAxes { get; set; }

Configuration for all Y axes in scatter charts

C#
public IList<IChartValueAxis> YAxes { get; set; }

Zoomable settings

C#
public ChartZoomable Zoomable { get; }

Methods

Serializes the Chart options to a Dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Serializes multiple Dictionary entries to the Chart options Dictionary.

C#
protected void SerializeData(string key, IDictionary<string, object> data, IDictionary<string, object> options)
Parameters:keystring

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.

C#
protected virtual void SerializeDataSource(IDictionary<string, object> options)
Parameters:optionsIDictionary<string, object>

Serializes the Chart persistSeriesVisibity option.

C#
protected void SerializePersistVisibility(IDictionary<string, object> options)
Parameters:optionsIDictionary<string, object>

Writes the Chart HTML output.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The text writer instance.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the Chart initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The text writer instance.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)