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

Telerik HtmlChart control

You can find information on the server properties, methods and events of RadHtmlChart at .

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[RequiredScript(typeof(Html5DataVizCore))]
[RequiredScript(typeof(Html5DataVizChart))]
[ClientScriptResource("Telerik.Web.UI.RadHtmlChart", "Telerik.Web.UI.HtmlChart.RadHtmlChart.js")]
[TelerikToolboxCategory("Visualization")]
[ToolboxBitmap(typeof(RadHtmlChart), "Toolbox.Icons.HtmlChart.png")]
[EmbeddedSkin("HtmlChart")]
[EmbeddedSkin("HtmlChart", "Default")]
[EmbeddedSkin("HtmlChart")]
[EmbeddedSkin("HtmlChart", "Default", typeof(RadHtmlChart))]
[RequiredCss("Telerik.Web.UI.Skins.HTML5UI.dataviz.css", RenderMode.Classic, typeof(RadHtmlChart))]
[RequiredCss("Telerik.Web.UI.Skins.HTML5UI.dataviz.css", RenderMode.Lightweight, typeof(RadHtmlChart))]
public class RadHtmlChart : RadDataBoundControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl, IFeatureGroup, ICallbackEventHandler

Inheritance: objectControlWebControlBaseDataBoundControlDataBoundControlRadDataBoundControlRadHtmlChart...

Implements: IAttributeAccessorICallbackEventHandlerIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIFeatureGroupIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members DataBoundControl.OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)DataBoundControl.CreateDataSourceSelectArguments()DataBoundControl.GetData()DataBoundControl.GetDataSource()DataBoundControl.MarkAsDataBound()DataBoundControl.OnDataPropertyChanged()DataBoundControl.OnDataSourceViewChanged(object, EventArgs)DataBoundControl.OnLoad(EventArgs)DataBoundControl.OnPagePreLoad(object, EventArgs)DataBoundControl.PerformSelect()DataBoundControl.ValidateDataSource(object)DataBoundControl.DataMemberDataBoundControl.IsUsingModelBindersDataBoundControl.ItemTypeDataBoundControl.SelectMethodDataBoundControl.DataSourceIDDataBoundControl.DataSourceObjectDataBoundControl.SelectArgumentsDataBoundControl.CreatingModelDataSourceDataBoundControl.CallingDataMethodsBaseDataBoundControl.ConfirmInitState()BaseDataBoundControl.DataBind()BaseDataBoundControl.EnsureDataBound()BaseDataBoundControl.OnDataBound(EventArgs)BaseDataBoundControl.OnInit(EventArgs)BaseDataBoundControl.OnPreRender(EventArgs)BaseDataBoundControl.DataSourceBaseDataBoundControl.InitializedBaseDataBoundControl.IsBoundUsingDataSourceIDBaseDataBoundControl.IsDataBindingAutomaticBaseDataBoundControl.SupportsDisabledAttributeBaseDataBoundControl.RequiresDataBindingBaseDataBoundControl.DataBoundWebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.IsEnabledWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.ToolTipControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadHtmlChart()

Fields

C#
protected StringBuilder dataBindData

Properties

Gets the chart-level appearance settings (background, borders, margins, etc.).

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public HtmlChartAppearance Appearance { get; }

Gets the chart title configuration (text and visual appearance).

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public HtmlChartTitle ChartTitle { get; }

Gets the object defining handlers for the client-side events (click, hover, load, drag, zoom, etc.).

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public HtmlChartClientEvents ClientEvents { get; }

Gets the CSS class format string used to compose the control's root class names.

C#
protected override string CssClassFormatString { get; }

Overrides: RadDataBoundControl.CssClassFormatString

Gets or sets the Height of the RadHtmlChart control.

C#
[ClientControlProperty]
[TypeConverter(typeof(UnitConverter))]
public override Unit Height { get; set; }

Overrides: RadDataBoundControl.Height

Gets or sets when actual data will be loaded (initial page load, after load, or manually from code).

C#
[ClientControlProperty]
public LoadDataInvocation InvokeLoadData { get; set; }

Gets or sets the layout of the chart (Default, Sparkline, Stock).

C#
public ChartLayout Layout { get; set; }
C#
protected string LayoutScript { get; }

Gets the chart legend configuration (position, alignment, orientation, items and border settings).

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public HtmlChartLegend Legend { get; }

Gets the stock-chart navigator configuration (mini chart with selectable range) used in stock layout.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Navigator Navigator { get; }

Gets or sets the template shown when the chart has no data.

C#
[Browsable(true)]
[Bindable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public string NoDataTemplate { get; set; }

Gets or sets the name of the JavaScript function that will be called when a series is clicked.

C#
[ClientControlEvent]
[ClientPropertyName("seriesClicked")]
public string OnClientSeriesClicked { get; set; }

Gets or sets the name of the JavaScript function that will be called when a series is hovered.

C#
[ClientControlEvent]
[ClientPropertyName("seriesHovered")]
public string OnClientSeriesHovered { get; set; }

Gets the panning configuration of the chart.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Pan Pan { get; }

Gets the plot area configuration (axes, series collection, common tooltips, etc.).

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
[Browsable(true)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public HtmlChartPlotArea PlotArea { get; }

Gets or sets the rendering engine of the chart (Auto, SVG, Canvas, VML).

C#
public ChartRenderingEngine RenderAs { get; set; }

Gets the preferred HTML tag for the chart wrapper (SPAN for sparkline layout, otherwise DIV).

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets whether transition animations should be played. Sparkline layout disables transitions by default.

C#
[ClientControlProperty]
public bool Transitions { get; set; }

Gets or sets the Width of the RadHtmlChart control.

C#
[ClientControlProperty]
[TypeConverter(typeof(UnitConverter))]
public override Unit Width { get; set; }

Overrides: RadDataBoundControl.Width

Gets the zooming configuration of the chart.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public Zoom Zoom { get; }

Methods

C#
protected void AddSerializedData(StringBuilder sb, PropertyDescriptorCollection props, object dataItem, bool isXmlDataSource)
Parameters:sbStringBuilderpropsPropertyDescriptorCollectiondataItemobjectisXmlDataSourcebool
C#
protected void BindToListData(object data)
Parameters:dataobject
C#
protected override void DescribeComponent(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadDataBoundControl.DescribeComponent(IScriptDescriptor)

C#
protected override IEnumerable<ScriptReference> GetScriptReferences()
Returns:

IEnumerable<ScriptReference>

Overrides: RadDataBoundControl.GetScriptReferences()

C#
protected override void LoadViewState(object state)
Parameters:stateobject

Overrides: DataBoundControl.LoadViewState(object)

C#
protected override void PerformDataBinding(IEnumerable data)
Parameters:dataIEnumerable

Overrides: DataBoundControl.PerformDataBinding(IEnumerable)

C#
protected override object SaveViewState()
Returns:

object

Overrides: DataBoundControl.SaveViewState()

C#
protected override void TrackViewState()

Overrides: DataBoundControl.TrackViewState()