Chart Class

Definition

Serves as the root class of the Chart control.

public ref class Chart : System::Web::UI::WebControls::DataBoundControl, System::Web::UI::IPostBackEventHandler
[System.Drawing.ToolboxBitmap(typeof(System.Web.UI.DataVisualization.Charting.Chart), "ChartControl.ico")]
public class Chart : System.Web.UI.WebControls.DataBoundControl, System.Web.UI.IPostBackEventHandler
[<System.Drawing.ToolboxBitmap(typeof(System.Web.UI.DataVisualization.Charting.Chart), "ChartControl.ico")>]
type Chart = class
    inherit DataBoundControl
    interface IPostBackEventHandler
Public Class Chart
Inherits DataBoundControl
Implements IPostBackEventHandler
Inheritance
Attributes
Implements

Remarks

This class exposes all of the properties, methods and events of the Chart Web control.

Two important properties of the Chart class are the Series and ChartAreas properties, both of which are collection properties. The Series collection property stores Series objects, which are used to store data that is to be displayed, along with attributes of that data. The ChartAreas collection property stores ChartArea objects, which are primarily used to draw one or more charts using one set of axes.

Constructors

Chart()

Initializes a new instance of the Chart class.

Properties

AccessKey

Gets or sets the access key that allows you to quickly navigate to the Web server control.

(Inherited from WebControl)
Adapter

Gets the browser-specific adapter for the control.

(Inherited from Control)
AlternateText

Gets or sets the alternate text displayed in the Chart control when the chart image is unavailable.

Annotations

Gets or sets the AnnotationCollection object that is used to store chart annotations.

AntiAliasing

Gets or sets a value that determines whether anti-aliasing is used when text and graphics are drawn.

AppRelativeTemplateSourceDirectory

Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control.

(Inherited from Control)
Attributes

Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.

(Inherited from WebControl)
BackColor

Gets or sets the background color of the Chart object.

BackGradientStyle

Gets or sets the orientation for the background gradient of a Chart control. Also determines whether a gradient is used.

BackHatchStyle

Gets or sets the hatching style of the Chart control.

BackImage

Gets or sets the background image of the Chart control.

BackImageAlignment

Gets or sets the background image alignment used for the Unscaled drawing mode.

BackImageTransparentColor

Gets or sets the color of the Chart control that will be displayed as transparent.

BackImageWrapMode

Gets or sets the drawing mode for the background image of the Chart control.

BackSecondaryColor

Gets or sets the secondary color of the chart background.

BindingContainer

Gets the control that contains this control's data binding.

(Inherited from Control)
BorderColor

Gets or sets the color of the chart border.

BorderlineColor

Gets or sets the color of the entire chart image border.

BorderlineDashStyle

Gets or sets the style of the entire chart image border line.

BorderlineWidth

Gets or sets the width of the border line for the entire chart image.

BorderSkin

Gets or sets a BorderSkin object, which provides border skin functionality for the Chart control.

BorderStyle

Gets or sets the border style of the Chart.

BorderWidth

Gets or sets the width of the chart border.

BuildNumber

Gets the build number of the Chart control.

ChartAreas

Gets a read-only ChartAreaCollection object that is used to store ChartArea objects.

ChildControlsCreated

Gets a value that indicates whether the server control's child controls have been created.

(Inherited from Control)
ClientID

Gets the control ID for HTML markup that is generated by ASP.NET.

(Inherited from Control)
ClientIDMode

Gets or sets the algorithm that is used to generate the value of the ClientID property.

(Inherited from Control)
ClientIDSeparator

Gets a character value representing the separator character used in the ClientID property.

(Inherited from Control)
Compression

Gets or sets the amount of compression for the chart image.

Context

Gets the HttpContext object associated with the server control for the current Web request.

(Inherited from Control)
Controls

Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.

(Inherited from Control)
ControlStyle

Gets the style of the Web server control. This property is used primarily by control developers.

(Inherited from WebControl)
ControlStyleCreated

Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers.

(Inherited from WebControl)
CssClass

Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client.

(Inherited from WebControl)
CurrentImageLocation

Gets the URL of the current image into which the Chart control will be rendered.

DataItemContainer

Gets a reference to the naming container if the naming container implements IDataItemContainer.

(Inherited from Control)
DataKeysContainer

Gets a reference to the naming container if the naming container implements IDataKeysControl.

(Inherited from Control)
DataManipulator

Gets a DataManipulator object, which provides methods and properties that handle data.

DataMember

Gets or sets the name of the list of data that the data-bound control binds to, in cases where the data source contains more than one distinct list of data items.

(Inherited from DataBoundControl)
DataSource

Gets or sets the data source for the Chart object.

DataSourceID

Gets or sets the ID of the control from which the data-bound control retrieves its list of data items.

(Inherited from DataBoundControl)
DataSourceObject

Gets an object that implements the IDataSource interface, which provides access to the object's data content.

(Inherited from DataBoundControl)
DescriptionUrl

Gets or sets the location of a detailed description of the Chart.

DesignMode

Gets a value indicating whether a control is being used on a design surface.

(Inherited from Control)
Enabled

Gets or sets a value indicating whether the Web server control is enabled.

(Inherited from WebControl)
EnableTheming

Gets or sets a value indicating whether themes apply to this control.

(Inherited from WebControl)
EnableViewState

Gets or sets a flag that determines whether state management is enabled.

Events

Gets a list of event handler delegates for the control. This property is read-only.

(Inherited from Control)
Font

Gets the font properties of the control.

ForeColor

Gets or sets the text color of the Chart control.

HasAttributes

Gets a value indicating whether the control has attributes set.

(Inherited from WebControl)
HasChildViewState

Gets a value indicating whether the current server control's child controls have any saved view-state settings.

(Inherited from Control)
Height

Gets or sets the height of the entire chart image in pixels.

ID

Gets or sets the programmatic identifier assigned to the server control.

(Inherited from Control)
IdSeparator

Gets the character used to separate control identifiers.

(Inherited from Control)
ImageLocation

Gets or sets the location where an image file is saved when ImageTag rendering is performed.

Images

Gets a NamedImagesCollection object, which stores NamedImage objects for the chart.

ImageStorageMode

Gets or sets the storage mode for the chart image rendering.

ImageType

Gets or sets the type of image into which the chart is rendered if ImageTag rendering is used.

Initialized

Gets a value indicating whether the data-bound control has been initialized.

(Inherited from BaseDataBoundControl)
IsBoundUsingDataSourceID

Gets a value indicating whether the DataSourceID property is set.

(Inherited from BaseDataBoundControl)
IsChildControlStateCleared

Gets a value indicating whether controls contained within this control have control state.

(Inherited from Control)
IsDataBindingAutomatic

Gets a value that indicates whether data binding is automatic.

(Inherited from BaseDataBoundControl)
IsEnabled

Gets a value indicating whether the control is enabled.

(Inherited from WebControl)
IsMapAreaAttributesEncoded

Gets or sets a flag that determines whether map area attributes are encoded. The map area attributes can load data from various data sources. The Chart control does not prevent an end user from loading untrusted data from various data sources. For this reason, it is recommended that you validate the data and encode it yourself.

IsMapEnabled

Gets or sets a flag that determines whether client-side image maps are enabled.

IsSoftShadows

Gets or sets a flag that determines if a smooth gradient is applied when shadows are drawn.

IsTrackingViewState

Gets a value that indicates whether the server control is saving changes to its view state.

(Inherited from Control)
IsUsingModelBinders

Gets a value that indicates whether model binding is in use.

(Inherited from DataBoundControl)
IsViewStateEnabled

Gets a value indicating whether view state is enabled for this control.

(Inherited from Control)
ItemType

Gets or sets the name of the data item type for strongly typed data binding.

(Inherited from DataBoundControl)
Legends

Gets or sets a LegendCollection object that is used to store all Legend objects used by the Chart control.

LoadViewStateByID

Gets a value indicating whether the control participates in loading its view state by ID instead of index.

(Inherited from Control)
MapAreas

Gets a MapAreasCollection object, which stores the map areas for the chart.

NamingContainer

Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same ID property value.

(Inherited from Control)
Page

Gets a reference to the Page instance that contains the server control.

(Inherited from Control)
Palette

Gets or sets the palette for the Chart control.

PaletteCustomColors

Gets or sets an array of custom palette colors.

Parent

Gets a reference to the server control's parent control in the page control hierarchy.

(Inherited from Control)
RenderingCompatibility

Gets a value that specifies the ASP.NET version that rendered HTML will be compatible with.

(Inherited from Control)
RenderType

Gets or sets the rendering method used to display a chart image.

RequiresDataBinding

Gets or sets a value indicating whether the DataBind() method should be called.

(Inherited from BaseDataBoundControl)
RightToLeft

Gets or sets a value that indicates whether the control should draw right-to-left for Right-to-Left (RTL) languages.

SelectArguments

Gets a DataSourceSelectArguments object that the data-bound control uses when retrieving data from a data source control.

(Inherited from DataBoundControl)
SelectMethod

The name of the method to call in order to read data.

(Inherited from DataBoundControl)
Serializer

Gets a ChartSerializer object, which is used for chart serialization.

Series

Gets a SeriesCollection object which contains Series objects.

Site

Gets information about the container that hosts the current control when rendered on a design surface.

(Inherited from Control)
SkinID

Gets or sets the skin to apply to the control.

(Inherited from WebControl)
Style

Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control.

(Inherited from WebControl)
SupportsDisabledAttribute

Gets a value that indicates whether the control should set the disabled attribute of the rendered HTML element to "disabled" when the control's IsEnabled property is false.

(Inherited from BaseDataBoundControl)
SuppressExceptions

Gets or sets a flag that determines whether noncritical exceptions should be suppressed.

TabIndex

Gets or sets the tab index of the Web server control.

(Inherited from WebControl)
TagKey

Gets the HtmlTextWriterTag value that corresponds to this Web server control. This property is used primarily by control developers.

(Inherited from WebControl)
TagName

Gets the name of the control tag. This property is used primarily by control developers.

(Inherited from WebControl)
TemplateControl

Gets or sets a reference to the template that contains this control.

(Inherited from Control)
TemplateSourceDirectory

Gets the virtual directory of the Page or UserControl that contains the current server control.

(Inherited from Control)
TextAntiAliasingQuality

Gets or sets the TextAntiAliasingQuality type to use when applying anti-aliasing to text.

Titles

Gets or sets a TitleCollection object which stores all Title objects used by the Chart control.

ToolTip

Gets or sets the text displayed when the mouse pointer hovers over the Web server control.

(Inherited from WebControl)
UniqueID

Gets the unique, hierarchically qualified identifier for the server control.

(Inherited from Control)
ValidateRequestMode

Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values.

(Inherited from Control)
ViewState

Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page.

(Inherited from Control)
ViewStateContent

Gets or sets a value that determines the view state to be persisted at the client.

ViewStateData
Obsolete.

Gets or sets the user-defined view state of the control.

ViewStateIgnoresCase

Gets a value that indicates whether the StateBag object is case-insensitive.

(Inherited from Control)
ViewStateMode

Gets or sets the view-state mode of this control.

(Inherited from Control)
Visible

Gets or sets a value that indicates whether a server control is rendered as UI on the page.

(Inherited from Control)
Width

Gets or sets the width of the entire chart image in pixels.

Methods

AddAttributesToRender(HtmlTextWriter)

Adds HTML attributes and styles that need to be rendered to the specified HtmlTextWriterTag. This method is used primarily by control developers.

(Inherited from WebControl)
AddedControl(Control, Int32)

Called after a child control is added to the Controls collection of the Control object.

(Inherited from Control)
AddParsedSubObject(Object)

Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's ControlCollection object.

(Inherited from Control)
AlignDataPointsByAxisLabel()

Aligns data points along the X axis using their axis labels. Applicable when multiple series are indexed and their X-values are strings.

AlignDataPointsByAxisLabel(PointSortOrder)

Aligns data points using their axis labels. All series in the chart are aligned, using the specified sort order.

AlignDataPointsByAxisLabel(String, PointSortOrder)

Aligns data points using their axis labels.

AlignDataPointsByAxisLabel(String)

Aligns data points from different series along the X axis using their axis labels. The specified series in the chart are aligned using an ascending sort order.

ApplyPaletteColors()

Sets the automatically assigned series and data point colors, to allow programmatic access at run time.

ApplyStyle(Style)

Copies any nonblank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.

(Inherited from WebControl)
ApplyStyleSheetSkin(Page)

Applies the style properties defined in the page style sheet to the control.

(Inherited from Control)
BeginRenderTracing(TextWriter, Object)

Begins design-time tracing of rendering data.

(Inherited from Control)
BuildProfileTree(String, Boolean)

Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page.

(Inherited from Control)
ClearCachedClientID()

Sets the cached ClientID value to null.

(Inherited from Control)
ClearChildControlState()

Deletes the control-state information for the server control's child controls.

(Inherited from Control)
ClearChildState()

Deletes the view-state and control-state information for all the server control's child controls.

(Inherited from Control)
ClearChildViewState()

Deletes the view-state information for all the server control's child controls.

(Inherited from Control)
ClearEffectiveClientIDMode()

Sets the ClientIDMode property of the current control instance and of any child controls to Inherit.

(Inherited from Control)
ConfirmInitState()

Sets the initialized state of the data-bound control.

(Inherited from BaseDataBoundControl)
CopyBaseAttributes(WebControl)

Copies the properties not encapsulated by the Style object from the specified Web server control to the Web server control that this method is called from. This method is used primarily by control developers.

(Inherited from WebControl)
CreateChildControls()

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

(Inherited from Control)
CreateControlCollection()

Creates a new ControlCollection object to hold the child controls (both literal and server) of the server control.

(Inherited from Control)
CreateControlStyle()

Creates the style object that is used internally by the WebControl class to implement all style related properties. This method is used primarily by control developers.

(Inherited from WebControl)
CreateDataSourceSelectArguments()

Creates a default DataSourceSelectArguments object used by the data-bound control if no arguments are specified.

(Inherited from DataBoundControl)
DataBind()

Binds a data source to the invoked server control and all its child controls.

(Inherited from BaseDataBoundControl)
DataBind(Boolean)

Binds a data source to the invoked server control and all its child controls with an option to raise the DataBinding event.

(Inherited from Control)
DataBindChildren()

Binds a data source to the server control's child controls.

(Inherited from Control)
DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder)

Data binds a chart to the table, with one series created per unique value in a given column.

DataBindCrossTable(IEnumerable, String, String, String, String)

Data binds a chart to the table, with one series created per unique value in a given column.

DataBindTable(IEnumerable, String)

Automatically creates and binds series data to the specified data table, and optionally populates X-values.

DataBindTable(IEnumerable)

Automatically creates and binds series data to the specified data table.

Dispose()

Disposes of the object, using the IDisposable interface.

Dispose(Boolean)

Releases unmanaged and, optionally, managed resources.

EndRenderTracing(TextWriter, Object)

Ends design-time tracing of rendering data.

(Inherited from Control)
EnsureChildControls()

Determines whether the server control contains child controls. If it does not, it creates child controls.

(Inherited from Control)
EnsureDataBound()

Calls the DataBind() method if the DataSourceID property is set and the data-bound control is marked to require binding.

(Inherited from BaseDataBoundControl)
EnsureID()

Creates an identifier for controls that do not have an identifier assigned.

(Inherited from Control)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindControl(String, Int32)

Searches the current naming container for a server control with the specified id and an integer, specified in the pathOffset parameter, which aids in the search. You should not override this version of the FindControl method.

(Inherited from Control)
FindControl(String)

Searches the current naming container for a server control with the specified id parameter.

(Inherited from Control)
Focus()

Sets input focus to a control.

(Inherited from Control)
GetChartElementOutline(Object, ChartElementType)

Returns the chart element outline.

GetData()

Retrieves a DataSourceView object that the data-bound control uses to perform data operations.

(Inherited from DataBoundControl)
GetDataSource()

Retrieves the IDataSource interface that the data-bound control is associated with, if any.

(Inherited from DataBoundControl)
GetDesignModeState()

Gets design-time data for a control.

(Inherited from Control)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetHtmlImageMap(String)

Returns the HTML image map of the currently rendered chart. One of the overloaded SaveImage methods in the Chart must be called before calling this method.

GetRouteUrl(Object)

Gets the URL that corresponds to a set of route parameters.

(Inherited from Control)
GetRouteUrl(RouteValueDictionary)

Gets the URL that corresponds to a set of route parameters.

(Inherited from Control)
GetRouteUrl(String, Object)

Gets the URL that corresponds to a set of route parameters and a route name.

(Inherited from Control)
GetRouteUrl(String, RouteValueDictionary)

Gets the URL that corresponds to a set of route parameters and a route name.

(Inherited from Control)
GetService(Type)

Returns the requested chart service.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUniqueIDRelativeTo(Control)

Returns the prefixed portion of the UniqueID property of the specified control.

(Inherited from Control)
HasControls()

Determines if the server control contains any child controls.

(Inherited from Control)
HasEvents()

Returns a value indicating whether events are registered for the control or any child controls.

(Inherited from Control)
HitTest(Int32, Int32, Boolean, ChartElementType[])

Determines whether a chart element that is one of the specified types is located at a point defined by the given X and Y coordinates.

HitTest(Int32, Int32, Boolean)

Determines the chart element, if any, that is located at a point defined by given X and Y coordinates. Transparent elements can optionally be ignored.

HitTest(Int32, Int32, ChartElementType)

Determines whether a chart element of a given type is located at a point defined by the given X and Y coordinates.

HitTest(Int32, Int32)

Determines the chart element, if any, that is located at a point defined by the given X and Y coordinates.

IsLiteralContent()

Determines if the server control holds only literal content.

(Inherited from Control)
LoadControlState(Object)

Restores control-state information from a previous page request that was saved by the SaveControlState() method.

(Inherited from Control)
LoadTemplate(Stream)

Loads a template into the Chart control from an image stream.

LoadTemplate(String)

Loads a template with the specified filename from the disk.

LoadViewState(Object)

Restores view-state information from a previous page request that was saved by the SaveViewState() method.

MapPathSecure(String)

Retrieves the physical path that a virtual path, either absolute or relative, maps to.

(Inherited from Control)
MarkAsDataBound()

Sets the state of the control in view state as successfully bound to data.

(Inherited from DataBoundControl)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MergeStyle(Style)

Copies any nonblank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is used primarily by control developers.

(Inherited from WebControl)
OnBubbleEvent(Object, EventArgs)

Determines whether the event for the server control is passed up the page's UI server control hierarchy.

(Inherited from Control)
OnClick(ImageMapEventArgs)

Invokes delegates that were registered with the Click event.

OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)

Raises the CreatingModelDataSource event.

(Inherited from DataBoundControl)
OnCustomize(EventArgs)

Occurs when all chart data is prepared to be customized before drawing.

OnCustomizeLegend(CustomizeLegendEventArgs)

Occurs when all chart legend data is prepared to be customized before drawing.

OnCustomizeMapAreas(CustomizeMapAreasEventArgs)

Occurs when map areas data is prepared to be customized before drawing.

OnDataBinding(EventArgs)

Raises the DataBinding event.

(Inherited from Control)
OnDataBound(EventArgs)

Raises the DataBound event.

(Inherited from BaseDataBoundControl)
OnDataPropertyChanged()

Rebinds the data-bound control to its data after one of the base data source identification properties changes.

(Inherited from DataBoundControl)
OnDataSourceViewChanged(Object, EventArgs)

Raises the DataSourceViewChanged event.

(Inherited from DataBoundControl)
OnFormatNumber(Object, FormatNumberEventArgs)

Occurs when converting a numeric value to a string.

OnInit(EventArgs)

Handles the Init event.

(Inherited from BaseDataBoundControl)
OnLoad(EventArgs)

Handles the Load event.

(Inherited from DataBoundControl)
OnPagePreLoad(Object, EventArgs)

Sets the initialized state of the data-bound control before the control is loaded.

(Inherited from DataBoundControl)
OnPostPaint(ChartPaintEventArgs)

Occurs after a chart element is painted.

OnPrePaint(ChartPaintEventArgs)

Occurs after the chart element background is painted.

OnPreRender(EventArgs)

Handles the PreRender event.

(Inherited from BaseDataBoundControl)
OnUnload(EventArgs)

Raises the Unload event.

(Inherited from Control)
OpenFile(String)

Gets a Stream used to read a file.

(Inherited from Control)
Paint(Graphics, Rectangle)

Draws the chart image in the graphics.

PerformDataBinding(IEnumerable)

Data binds the specified data source to the Chart control.

PerformSelect()

Retrieves data from the associated data source.

(Inherited from DataBoundControl)
RaiseBubbleEvent(Object, EventArgs)

Assigns any sources of the event and its information to the control's parent.

(Inherited from Control)
RaisePostBackEvent(String)

Raises events for the Chart control when a form is posted back to the server.

RemovedControl(Control)

Called after a child control is removed from the Controls collection of the Control object.

(Inherited from Control)
Render(HtmlTextWriter)

Renders the Chart control to the output parameter specified.

RenderBeginTag(HtmlTextWriter)

Renders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers.

(Inherited from WebControl)
RenderChildren(HtmlTextWriter)

Outputs the content of a server control's children to a provided HtmlTextWriter object, which writes the content to be rendered on the client.

(Inherited from Control)
RenderContents(HtmlTextWriter)

Renders the contents of the control to the specified writer. This method is used primarily by control developers.

(Inherited from WebControl)
RenderControl(HtmlTextWriter, ControlAdapter)

Outputs server control content to a provided HtmlTextWriter object using a provided ControlAdapter object.

(Inherited from Control)
RenderControl(HtmlTextWriter)

Outputs server control content to a provided HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

(Inherited from Control)
RenderEndTag(HtmlTextWriter)

Renders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers.

(Inherited from WebControl)
ResetAutoValues()

Resets automatically calculated chart property values to "Auto".

ResolveAdapter()

Gets the control adapter responsible for rendering the specified control.

(Inherited from Control)
ResolveClientUrl(String)

Gets a URL that can be used by the browser.

(Inherited from Control)
ResolveUrl(String)

Converts a URL into one that is usable on the requesting client.

(Inherited from Control)
SaveControlState()

Saves any server control state changes that have occurred since the time the page was posted back to the server.

(Inherited from Control)
SaveImage(Stream, ChartImageFormat)

Saves the chart image to the specified stream.

SaveImage(Stream)

Saves the chart image to the specified stream. The properties ImageType, Compression and other Chart control properties are used.

SaveImage(String, ChartImageFormat)

Saves a chart image to the file.

SaveImage(String)

Saves the chart image to the specified file. The properties ImageType, Compression and other Chart control properties are used.

SaveViewState()

Saves any server control view-state changes that have occurred since the time the page was posted back to the server.

SaveXml(String)

Saves the current state of the chart to an XML file. This method is mainly used for support purposes. The executing thread must have file write permission.

SetDesignModeState(IDictionary)

Sets design-time data for a control.

(Inherited from Control)
SetRenderMethodDelegate(RenderMethod)

Assigns an event handler delegate to render the server control and its content into its parent control.

(Inherited from Control)
SetTraceData(Object, Object, Object)

Sets trace data for design-time tracing of rendering data, using the traced object, the trace data key, and the trace data value.

(Inherited from Control)
SetTraceData(Object, Object)

Sets trace data for design-time tracing of rendering data, using the trace data key and the trace data value.

(Inherited from Control)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
TrackViewState()

Causes view-state changes to the control to be tracked so they can be stored in the control's StateBag object.

(Inherited from DataBoundControl)
ValidateDataSource(Object)

Verifies that a data-bound control can work with the object it will bind to.

Events

CallingDataMethods

Occurs when data methods are being called.

(Inherited from DataBoundControl)
Click

Occurs when the active image map area defined by PostBackValue on the Chart control is clicked.

CreatingModelDataSource

Occurs when the ModelDataSource object is being created.

(Inherited from DataBoundControl)
Customize

Occurs just before the chart image is drawn. All chart data is available and all chart properties have been set.

CustomizeLegend

Occurs just before the chart legend is drawn. Use this event to customize the chart legend items.

CustomizeMapAreas

Occurs just before the chart image map is rendered. Use this event to customize the map areas items.

DataBinding

Occurs when the server control binds to a data source.

(Inherited from Control)
DataBound

Occurs after the server control binds to a data source.

(Inherited from BaseDataBoundControl)
Disposed

Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.

(Inherited from Control)
FormatNumber

Called when a numeric value has to be converted to a string.

Init

Occurs when the server control is initialized, which is the first step in its lifecycle.

(Inherited from Control)
Load

Occurs when the server control is loaded into the Page object.

(Inherited from Control)
PostPaint

Occurs after chart element was drawn. This event is raised for elements such as ChartArea and Legend.

PrePaint

Occurs after the chart element background is drawn. This event is raised for elements such as ChartArea and Legend.

PreRender

Occurs after the Control object is loaded but prior to rendering.

(Inherited from Control)
Unload

Occurs when the server control is unloaded from memory.

(Inherited from Control)

Explicit Interface Implementations

IAttributeAccessor.GetAttribute(String)

Gets an attribute of the Web control with the specified name.

(Inherited from WebControl)
IAttributeAccessor.SetAttribute(String, String)

Sets an attribute of the Web control to the specified name and value.

(Inherited from WebControl)
IControlBuilderAccessor.ControlBuilder

For a description of this member, see ControlBuilder.

(Inherited from Control)
IControlDesignerAccessor.GetDesignModeState()

For a description of this member, see GetDesignModeState().

(Inherited from Control)
IControlDesignerAccessor.SetDesignModeState(IDictionary)

For a description of this member, see SetDesignModeState(IDictionary).

(Inherited from Control)
IControlDesignerAccessor.SetOwnerControl(Control)

For a description of this member, see SetOwnerControl(Control).

(Inherited from Control)
IControlDesignerAccessor.UserData

For a description of this member, see UserData.

(Inherited from Control)
IDataBindingsAccessor.DataBindings

For a description of this member, see DataBindings.

(Inherited from Control)
IDataBindingsAccessor.HasDataBindings

For a description of this member, see HasDataBindings.

(Inherited from Control)
IExpressionsAccessor.Expressions

For a description of this member, see Expressions.

(Inherited from Control)
IExpressionsAccessor.HasExpressions

For a description of this member, see HasExpressions.

(Inherited from Control)
IParserAccessor.AddParsedSubObject(Object)

For a description of this member, see AddParsedSubObject(Object).

(Inherited from Control)
IPostBackEventHandler.RaisePostBackEvent(String)

Raises events for the Chart control when a form is posted back to the server.

Extension Methods

EnablePersistedSelection(BaseDataBoundControl)
Obsolete.

Enables selection to be persisted in data controls that support selection and paging.

FindDataSourceControl(Control)

Returns the data source that is associated with the data control for the specified control.

FindFieldTemplate(Control, String)

Returns the field template for the specified column in the specified control's naming container.

FindMetaTable(Control)

Returns the metatable object for the containing data control.

Applies to