Chart Chart Chart 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
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() Chart() Chart() Chart()

Initializes a new instance of the Chart class.

Properties

AccessKey AccessKey AccessKey AccessKey

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

(Inherited from WebControl)
Adapter Adapter Adapter Adapter

Gets the browser-specific adapter for the control.

(Inherited from Control)
AlternateText AlternateText AlternateText AlternateText

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

Annotations Annotations Annotations Annotations

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

AntiAliasing AntiAliasing AntiAliasing AntiAliasing

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

AppRelativeTemplateSourceDirectory AppRelativeTemplateSourceDirectory AppRelativeTemplateSourceDirectory AppRelativeTemplateSourceDirectory

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

(Inherited from Control)
Attributes Attributes Attributes Attributes

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

(Inherited from WebControl)
BackColor BackColor BackColor BackColor

Gets or sets the background color of the Chart object.

BackGradientStyle BackGradientStyle BackGradientStyle BackGradientStyle

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

BackHatchStyle BackHatchStyle BackHatchStyle BackHatchStyle

Gets or sets the hatching style of the Chart control.

BackImage BackImage BackImage BackImage

Gets or sets the background image of the Chart control.

BackImageAlignment BackImageAlignment BackImageAlignment BackImageAlignment

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

BackImageTransparentColor BackImageTransparentColor BackImageTransparentColor BackImageTransparentColor

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

BackImageWrapMode BackImageWrapMode BackImageWrapMode BackImageWrapMode

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

BackSecondaryColor BackSecondaryColor BackSecondaryColor BackSecondaryColor

Gets or sets the secondary color of the chart background.

BindingContainer BindingContainer BindingContainer BindingContainer

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

(Inherited from Control)
BorderColor BorderColor BorderColor BorderColor

Gets or sets the color of the chart border.

BorderlineColor BorderlineColor BorderlineColor BorderlineColor

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

BorderlineDashStyle BorderlineDashStyle BorderlineDashStyle BorderlineDashStyle

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

BorderlineWidth BorderlineWidth BorderlineWidth BorderlineWidth

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

BorderSkin BorderSkin BorderSkin BorderSkin

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

BorderStyle BorderStyle BorderStyle BorderStyle

Gets or sets the border style of the Chart.

BorderWidth BorderWidth BorderWidth BorderWidth

Gets or sets the width of the chart border.

BuildNumber BuildNumber BuildNumber BuildNumber

Gets the build number of the Chart control.

ChartAreas ChartAreas ChartAreas ChartAreas

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

ChildControlsCreated ChildControlsCreated ChildControlsCreated ChildControlsCreated

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

(Inherited from Control)
ClientID ClientID ClientID ClientID

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

(Inherited from Control)
ClientIDMode ClientIDMode ClientIDMode ClientIDMode

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

(Inherited from Control)
ClientIDSeparator ClientIDSeparator ClientIDSeparator ClientIDSeparator

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

(Inherited from Control)
Compression Compression Compression Compression

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

Context Context Context Context

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

(Inherited from Control)
Controls Controls Controls Controls

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

(Inherited from Control)
ControlStyle ControlStyle ControlStyle ControlStyle

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

(Inherited from WebControl)
ControlStyleCreated ControlStyleCreated ControlStyleCreated 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 CssClass CssClass CssClass

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

(Inherited from WebControl)
CurrentImageLocation CurrentImageLocation CurrentImageLocation CurrentImageLocation

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

DataItemContainer DataItemContainer DataItemContainer DataItemContainer

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

(Inherited from Control)
DataKeysContainer DataKeysContainer DataKeysContainer DataKeysContainer

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

(Inherited from Control)
DataManipulator DataManipulator DataManipulator DataManipulator

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

DataMember DataMember DataMember 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 DataSource DataSource DataSource

Gets or sets the data source for the Chart object.

DataSourceID DataSourceID DataSourceID 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 DataSourceObject DataSourceObject DataSourceObject

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

(Inherited from DataBoundControl)
DescriptionUrl DescriptionUrl DescriptionUrl DescriptionUrl

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

DesignMode DesignMode DesignMode DesignMode

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

(Inherited from Control)
Enabled Enabled Enabled Enabled

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

(Inherited from WebControl)
EnableTheming EnableTheming EnableTheming EnableTheming

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

(Inherited from WebControl)
EnableViewState EnableViewState EnableViewState EnableViewState

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

Events Events Events Events

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

(Inherited from Control)
Font Font Font Font

Gets the font properties of the control.

ForeColor ForeColor ForeColor ForeColor

Gets or sets the text color of the Chart control.

HasAttributes HasAttributes HasAttributes HasAttributes

Gets a value indicating whether the control has attributes set.

(Inherited from WebControl)
HasChildViewState HasChildViewState HasChildViewState HasChildViewState

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

(Inherited from Control)
Height Height Height Height

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

IControlBuilderAccessor.ControlBuilder IControlBuilderAccessor.ControlBuilder IControlBuilderAccessor.ControlBuilder IControlBuilderAccessor.ControlBuilder

For a description of this member, see ControlBuilder.

(Inherited from Control)
IControlDesignerAccessor.UserData IControlDesignerAccessor.UserData IControlDesignerAccessor.UserData IControlDesignerAccessor.UserData

For a description of this member, see UserData.

(Inherited from Control)
ID ID ID ID

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

(Inherited from Control)
IDataBindingsAccessor.DataBindings IDataBindingsAccessor.DataBindings IDataBindingsAccessor.DataBindings IDataBindingsAccessor.DataBindings

For a description of this member, see DataBindings.

(Inherited from Control)
IDataBindingsAccessor.HasDataBindings IDataBindingsAccessor.HasDataBindings IDataBindingsAccessor.HasDataBindings IDataBindingsAccessor.HasDataBindings

For a description of this member, see HasDataBindings.

(Inherited from Control)
IdSeparator IdSeparator IdSeparator IdSeparator

Gets the character used to separate control identifiers.

(Inherited from Control)
IExpressionsAccessor.Expressions IExpressionsAccessor.Expressions IExpressionsAccessor.Expressions IExpressionsAccessor.Expressions

For a description of this member, see Expressions.

(Inherited from Control)
IExpressionsAccessor.HasExpressions IExpressionsAccessor.HasExpressions IExpressionsAccessor.HasExpressions IExpressionsAccessor.HasExpressions

For a description of this member, see HasExpressions.

(Inherited from Control)
ImageLocation ImageLocation ImageLocation ImageLocation

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

Images Images Images Images

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

ImageStorageMode ImageStorageMode ImageStorageMode ImageStorageMode

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

ImageType ImageType ImageType ImageType

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

Initialized Initialized Initialized Initialized

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

(Inherited from BaseDataBoundControl)
IsBoundUsingDataSourceID IsBoundUsingDataSourceID IsBoundUsingDataSourceID IsBoundUsingDataSourceID

Gets a value indicating whether the DataSourceID property is set.

(Inherited from BaseDataBoundControl)
IsChildControlStateCleared IsChildControlStateCleared IsChildControlStateCleared IsChildControlStateCleared

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

(Inherited from Control)
IsDataBindingAutomatic IsDataBindingAutomatic IsDataBindingAutomatic IsDataBindingAutomatic

Gets a value that indicates whether data binding is automatic.

(Inherited from BaseDataBoundControl)
IsEnabled IsEnabled IsEnabled IsEnabled

Gets a value indicating whether the control is enabled.

(Inherited from WebControl)
IsMapAreaAttributesEncoded IsMapAreaAttributesEncoded IsMapAreaAttributesEncoded 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 IsMapEnabled IsMapEnabled IsMapEnabled

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

IsSoftShadows IsSoftShadows IsSoftShadows IsSoftShadows

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

IsTrackingViewState IsTrackingViewState IsTrackingViewState IsTrackingViewState

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

(Inherited from Control)
IsUsingModelBinders IsUsingModelBinders IsUsingModelBinders IsUsingModelBinders

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

(Inherited from DataBoundControl)
IsViewStateEnabled IsViewStateEnabled IsViewStateEnabled IsViewStateEnabled

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

(Inherited from Control)
ItemType ItemType ItemType ItemType

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

(Inherited from DataBoundControl)
Legends Legends Legends Legends

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

LoadViewStateByID LoadViewStateByID LoadViewStateByID LoadViewStateByID

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

(Inherited from Control)
MapAreas MapAreas MapAreas MapAreas

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

NamingContainer NamingContainer NamingContainer 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 Page Page Page

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

(Inherited from Control)
Palette Palette Palette Palette

Gets or sets the palette for the Chart control.

PaletteCustomColors PaletteCustomColors PaletteCustomColors PaletteCustomColors

Gets or sets an array of custom palette colors.

Parent Parent Parent Parent

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

(Inherited from Control)
RenderingCompatibility RenderingCompatibility RenderingCompatibility RenderingCompatibility

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

(Inherited from Control)
RenderType RenderType RenderType RenderType

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

RequiresDataBinding RequiresDataBinding RequiresDataBinding RequiresDataBinding

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

(Inherited from BaseDataBoundControl)
RightToLeft RightToLeft RightToLeft RightToLeft

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

SelectArguments SelectArguments SelectArguments SelectArguments

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

(Inherited from DataBoundControl)
SelectMethod SelectMethod SelectMethod SelectMethod

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

(Inherited from DataBoundControl)
Serializer Serializer Serializer Serializer

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

Series Series Series Series

Gets a SeriesCollection object which contains Series objects.

Site Site Site Site

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

(Inherited from Control)
SkinID SkinID SkinID SkinID

Gets or sets the skin to apply to the control.

(Inherited from WebControl)
Style Style Style 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 SupportsDisabledAttribute SupportsDisabledAttribute 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 SuppressExceptions SuppressExceptions SuppressExceptions

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

TabIndex TabIndex TabIndex TabIndex

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

(Inherited from WebControl)
TagKey TagKey TagKey TagKey

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

(Inherited from WebControl)
TagName TagName TagName TagName

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

(Inherited from WebControl)
TemplateControl TemplateControl TemplateControl TemplateControl

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

(Inherited from Control)
TemplateSourceDirectory TemplateSourceDirectory TemplateSourceDirectory TemplateSourceDirectory

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

(Inherited from Control)
TextAntiAliasingQuality TextAntiAliasingQuality TextAntiAliasingQuality TextAntiAliasingQuality

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

Titles Titles Titles Titles

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

ToolTip ToolTip ToolTip ToolTip

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

(Inherited from WebControl)
UniqueID UniqueID UniqueID UniqueID

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

(Inherited from Control)
ValidateRequestMode ValidateRequestMode ValidateRequestMode 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 ViewState ViewState 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 ViewStateContent ViewStateContent ViewStateContent

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

ViewStateData ViewStateData ViewStateData ViewStateData

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

ViewStateIgnoresCase ViewStateIgnoresCase ViewStateIgnoresCase ViewStateIgnoresCase

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

(Inherited from Control)
ViewStateMode ViewStateMode ViewStateMode ViewStateMode

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

(Inherited from Control)
Visible Visible Visible Visible

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

(Inherited from Control)
Width Width Width Width

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

Methods

AddAttributesToRender(HtmlTextWriter) AddAttributesToRender(HtmlTextWriter) AddAttributesToRender(HtmlTextWriter) 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) AddedControl(Control, Int32) AddedControl(Control, Int32) AddedControl(Control, Int32)

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

(Inherited from Control)
AddParsedSubObject(Object) AddParsedSubObject(Object) AddParsedSubObject(Object) 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() AlignDataPointsByAxisLabel() AlignDataPointsByAxisLabel() 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) AlignDataPointsByAxisLabel(PointSortOrder) AlignDataPointsByAxisLabel(PointSortOrder) AlignDataPointsByAxisLabel(PointSortOrder)

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

AlignDataPointsByAxisLabel(String) AlignDataPointsByAxisLabel(String) AlignDataPointsByAxisLabel(String) 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.

AlignDataPointsByAxisLabel(String, PointSortOrder) AlignDataPointsByAxisLabel(String, PointSortOrder) AlignDataPointsByAxisLabel(String, PointSortOrder) AlignDataPointsByAxisLabel(String, PointSortOrder)

Aligns data points using their axis labels.

ApplyPaletteColors() ApplyPaletteColors() ApplyPaletteColors() ApplyPaletteColors()

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

ApplyStyle(Style) ApplyStyle(Style) ApplyStyle(Style) 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) ApplyStyleSheetSkin(Page) ApplyStyleSheetSkin(Page) ApplyStyleSheetSkin(Page)

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

(Inherited from Control)
BeginRenderTracing(TextWriter, Object) BeginRenderTracing(TextWriter, Object) BeginRenderTracing(TextWriter, Object) BeginRenderTracing(TextWriter, Object)

Begins design-time tracing of rendering data.

(Inherited from Control)
BuildProfileTree(String, Boolean) BuildProfileTree(String, Boolean) BuildProfileTree(String, Boolean) 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() ClearCachedClientID() ClearCachedClientID() ClearCachedClientID()

Sets the cached ClientID value to null.

(Inherited from Control)
ClearChildControlState() ClearChildControlState() ClearChildControlState() ClearChildControlState()

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

(Inherited from Control)
ClearChildState() ClearChildState() ClearChildState() ClearChildState()

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

(Inherited from Control)
ClearChildViewState() ClearChildViewState() ClearChildViewState() ClearChildViewState()

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

(Inherited from Control)
ClearEffectiveClientIDMode() ClearEffectiveClientIDMode() ClearEffectiveClientIDMode() ClearEffectiveClientIDMode()

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

(Inherited from Control)
ConfirmInitState() ConfirmInitState() ConfirmInitState() ConfirmInitState()

Sets the initialized state of the data-bound control.

(Inherited from BaseDataBoundControl)
CopyBaseAttributes(WebControl) CopyBaseAttributes(WebControl) CopyBaseAttributes(WebControl) 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() CreateChildControls() CreateChildControls() 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() CreateControlCollection() CreateControlCollection() CreateControlCollection()

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

(Inherited from Control)
CreateControlStyle() CreateControlStyle() CreateControlStyle() 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() CreateDataSourceSelectArguments() CreateDataSourceSelectArguments() CreateDataSourceSelectArguments()

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

(Inherited from DataBoundControl)
DataBind() DataBind() DataBind() DataBind()

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

(Inherited from BaseDataBoundControl)
DataBind(Boolean) DataBind(Boolean) DataBind(Boolean) 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() DataBindChildren() DataBindChildren() DataBindChildren()

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

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

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

DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder) 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.

DataBindTable(IEnumerable) DataBindTable(IEnumerable) DataBindTable(IEnumerable) DataBindTable(IEnumerable)

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

DataBindTable(IEnumerable, String) DataBindTable(IEnumerable, String) DataBindTable(IEnumerable, String) DataBindTable(IEnumerable, String)

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

Dispose() Dispose() Dispose() Dispose()

Disposes of the object, using the IDisposable interface.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases unmanaged and, optionally, managed resources.

EndRenderTracing(TextWriter, Object) EndRenderTracing(TextWriter, Object) EndRenderTracing(TextWriter, Object) EndRenderTracing(TextWriter, Object)

Ends design-time tracing of rendering data.

(Inherited from Control)
EnsureChildControls() EnsureChildControls() EnsureChildControls() EnsureChildControls()

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

(Inherited from Control)
EnsureDataBound() EnsureDataBound() EnsureDataBound() 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() EnsureID() EnsureID() EnsureID()

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

(Inherited from Control)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
FindControl(String) FindControl(String) FindControl(String) FindControl(String)

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

(Inherited from Control)
FindControl(String, Int32) FindControl(String, Int32) FindControl(String, Int32) 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)
Focus() Focus() Focus() Focus()

Sets input focus to a control.

(Inherited from Control)
GetChartElementOutline(Object, ChartElementType) GetChartElementOutline(Object, ChartElementType) GetChartElementOutline(Object, ChartElementType) GetChartElementOutline(Object, ChartElementType)

Returns the chart element outline.

GetData() GetData() GetData() GetData()

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

(Inherited from DataBoundControl)
GetDataSource() GetDataSource() GetDataSource() GetDataSource()

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

(Inherited from DataBoundControl)
GetDesignModeState() GetDesignModeState() GetDesignModeState() GetDesignModeState()

Gets design-time data for a control.

(Inherited from Control)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetHtmlImageMap(String) GetHtmlImageMap(String) GetHtmlImageMap(String) 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) GetRouteUrl(Object) GetRouteUrl(Object) GetRouteUrl(Object)

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

(Inherited from Control)
GetRouteUrl(RouteValueDictionary) GetRouteUrl(RouteValueDictionary) GetRouteUrl(RouteValueDictionary) GetRouteUrl(RouteValueDictionary)

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

(Inherited from Control)
GetRouteUrl(String, Object) GetRouteUrl(String, Object) GetRouteUrl(String, Object) GetRouteUrl(String, Object)

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

(Inherited from Control)
GetRouteUrl(String, RouteValueDictionary) GetRouteUrl(String, RouteValueDictionary) GetRouteUrl(String, RouteValueDictionary) GetRouteUrl(String, RouteValueDictionary)

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

(Inherited from Control)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Returns the requested chart service.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetUniqueIDRelativeTo(Control) GetUniqueIDRelativeTo(Control) GetUniqueIDRelativeTo(Control) GetUniqueIDRelativeTo(Control)

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

(Inherited from Control)
HasControls() HasControls() HasControls() HasControls()

Determines if the server control contains any child controls.

(Inherited from Control)
HasEvents() HasEvents() HasEvents() HasEvents()

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

(Inherited from Control)
HitTest(Int32, Int32) HitTest(Int32, Int32) HitTest(Int32, Int32) HitTest(Int32, Int32)

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

HitTest(Int32, Int32, Boolean) HitTest(Int32, Int32, Boolean) HitTest(Int32, Int32, Boolean) 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, Boolean, ChartElementType[]) HitTest(Int32, Int32, Boolean, ChartElementType[]) HitTest(Int32, Int32, Boolean, ChartElementType[]) 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, ChartElementType) HitTest(Int32, Int32, ChartElementType) HitTest(Int32, Int32, ChartElementType) 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.

IsLiteralContent() IsLiteralContent() IsLiteralContent() IsLiteralContent()

Determines if the server control holds only literal content.

(Inherited from Control)
LoadControlState(Object) LoadControlState(Object) LoadControlState(Object) LoadControlState(Object)

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

(Inherited from Control)
LoadTemplate(Stream) LoadTemplate(Stream) LoadTemplate(Stream) LoadTemplate(Stream)

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

LoadTemplate(String) LoadTemplate(String) LoadTemplate(String) LoadTemplate(String)

Loads a template with the specified filename from the disk.

LoadViewState(Object) LoadViewState(Object) LoadViewState(Object) LoadViewState(Object)

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

MapPathSecure(String) MapPathSecure(String) MapPathSecure(String) MapPathSecure(String)

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

(Inherited from Control)
MarkAsDataBound() MarkAsDataBound() MarkAsDataBound() MarkAsDataBound()

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

(Inherited from DataBoundControl)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MergeStyle(Style) MergeStyle(Style) MergeStyle(Style) 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) OnBubbleEvent(Object, EventArgs) OnBubbleEvent(Object, EventArgs) 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) OnClick(ImageMapEventArgs) OnClick(ImageMapEventArgs) OnClick(ImageMapEventArgs)

Invokes delegates that were registered with the Click event.

OnCreatingModelDataSource(CreatingModelDataSourceEventArgs) OnCreatingModelDataSource(CreatingModelDataSourceEventArgs) OnCreatingModelDataSource(CreatingModelDataSourceEventArgs) OnCreatingModelDataSource(CreatingModelDataSourceEventArgs)

Raises the CreatingModelDataSource event.

(Inherited from DataBoundControl)
OnCustomize(EventArgs) OnCustomize(EventArgs) OnCustomize(EventArgs) OnCustomize(EventArgs)

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

OnCustomizeLegend(CustomizeLegendEventArgs) OnCustomizeLegend(CustomizeLegendEventArgs) OnCustomizeLegend(CustomizeLegendEventArgs) OnCustomizeLegend(CustomizeLegendEventArgs)

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

OnCustomizeMapAreas(CustomizeMapAreasEventArgs) OnCustomizeMapAreas(CustomizeMapAreasEventArgs) OnCustomizeMapAreas(CustomizeMapAreasEventArgs) OnCustomizeMapAreas(CustomizeMapAreasEventArgs)

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

OnDataBinding(EventArgs) OnDataBinding(EventArgs) OnDataBinding(EventArgs) OnDataBinding(EventArgs)

Raises the DataBinding event.

(Inherited from Control)
OnDataBound(EventArgs) OnDataBound(EventArgs) OnDataBound(EventArgs) OnDataBound(EventArgs)

Raises the DataBound event.

(Inherited from BaseDataBoundControl)
OnDataPropertyChanged() OnDataPropertyChanged() OnDataPropertyChanged() 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) OnDataSourceViewChanged(Object, EventArgs) OnDataSourceViewChanged(Object, EventArgs) OnDataSourceViewChanged(Object, EventArgs)

Raises the DataSourceViewChanged event.

(Inherited from DataBoundControl)
OnFormatNumber(Object, FormatNumberEventArgs) OnFormatNumber(Object, FormatNumberEventArgs) OnFormatNumber(Object, FormatNumberEventArgs) OnFormatNumber(Object, FormatNumberEventArgs)

Occurs when converting a numeric value to a string.

OnInit(EventArgs) OnInit(EventArgs) OnInit(EventArgs) OnInit(EventArgs)

Handles the Init event.

(Inherited from BaseDataBoundControl)
OnLoad(EventArgs) OnLoad(EventArgs) OnLoad(EventArgs) OnLoad(EventArgs)

Handles the Load event.

(Inherited from DataBoundControl)
OnPagePreLoad(Object, EventArgs) OnPagePreLoad(Object, EventArgs) OnPagePreLoad(Object, EventArgs) OnPagePreLoad(Object, EventArgs)

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

(Inherited from DataBoundControl)
OnPostPaint(ChartPaintEventArgs) OnPostPaint(ChartPaintEventArgs) OnPostPaint(ChartPaintEventArgs) OnPostPaint(ChartPaintEventArgs)

Occurs after a chart element is painted.

OnPrePaint(ChartPaintEventArgs) OnPrePaint(ChartPaintEventArgs) OnPrePaint(ChartPaintEventArgs) OnPrePaint(ChartPaintEventArgs)

Occurs after the chart element background is painted.

OnPreRender(EventArgs) OnPreRender(EventArgs) OnPreRender(EventArgs) OnPreRender(EventArgs)

Handles the PreRender event.

(Inherited from BaseDataBoundControl)
OnUnload(EventArgs) OnUnload(EventArgs) OnUnload(EventArgs) OnUnload(EventArgs)

Raises the Unload event.

(Inherited from Control)
OpenFile(String) OpenFile(String) OpenFile(String) OpenFile(String)

Gets a Stream used to read a file.

(Inherited from Control)
Paint(Graphics, Rectangle) Paint(Graphics, Rectangle) Paint(Graphics, Rectangle) Paint(Graphics, Rectangle)

Draws the chart image in the graphics.

PerformDataBinding(IEnumerable) PerformDataBinding(IEnumerable) PerformDataBinding(IEnumerable) PerformDataBinding(IEnumerable)

Data binds the specified data source to the Chart control.

PerformSelect() PerformSelect() PerformSelect() PerformSelect()

Retrieves data from the associated data source.

(Inherited from DataBoundControl)
RaiseBubbleEvent(Object, EventArgs) RaiseBubbleEvent(Object, EventArgs) RaiseBubbleEvent(Object, EventArgs) RaiseBubbleEvent(Object, EventArgs)

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

(Inherited from Control)
RaisePostBackEvent(String) RaisePostBackEvent(String) RaisePostBackEvent(String) RaisePostBackEvent(String)

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

RemovedControl(Control) RemovedControl(Control) RemovedControl(Control) RemovedControl(Control)

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

(Inherited from Control)
Render(HtmlTextWriter) Render(HtmlTextWriter) Render(HtmlTextWriter) Render(HtmlTextWriter)

Renders the Chart control to the output parameter specified.

RenderBeginTag(HtmlTextWriter) RenderBeginTag(HtmlTextWriter) RenderBeginTag(HtmlTextWriter) 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) RenderChildren(HtmlTextWriter) RenderChildren(HtmlTextWriter) 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) RenderContents(HtmlTextWriter) RenderContents(HtmlTextWriter) 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) RenderControl(HtmlTextWriter) RenderControl(HtmlTextWriter) 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)
RenderControl(HtmlTextWriter, ControlAdapter) RenderControl(HtmlTextWriter, ControlAdapter) RenderControl(HtmlTextWriter, ControlAdapter) RenderControl(HtmlTextWriter, ControlAdapter)

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

(Inherited from Control)
RenderEndTag(HtmlTextWriter) RenderEndTag(HtmlTextWriter) RenderEndTag(HtmlTextWriter) 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() ResetAutoValues() ResetAutoValues() ResetAutoValues()

Resets automatically calculated chart property values to "Auto".

ResolveAdapter() ResolveAdapter() ResolveAdapter() ResolveAdapter()

Gets the control adapter responsible for rendering the specified control.

(Inherited from Control)
ResolveClientUrl(String) ResolveClientUrl(String) ResolveClientUrl(String) ResolveClientUrl(String)

Gets a URL that can be used by the browser.

(Inherited from Control)
ResolveUrl(String) ResolveUrl(String) ResolveUrl(String) ResolveUrl(String)

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

(Inherited from Control)
SaveControlState() SaveControlState() SaveControlState() 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) SaveImage(Stream) SaveImage(Stream) SaveImage(Stream)

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

SaveImage(Stream, ChartImageFormat) SaveImage(Stream, ChartImageFormat) SaveImage(Stream, ChartImageFormat) SaveImage(Stream, ChartImageFormat)

Saves the chart image to the specified stream.

SaveImage(String) SaveImage(String) SaveImage(String) SaveImage(String)

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

SaveImage(String, ChartImageFormat) SaveImage(String, ChartImageFormat) SaveImage(String, ChartImageFormat) SaveImage(String, ChartImageFormat)

Saves a chart image to the file.

SaveViewState() SaveViewState() SaveViewState() SaveViewState()

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

SaveXml(String) SaveXml(String) SaveXml(String) 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) SetDesignModeState(IDictionary) SetDesignModeState(IDictionary) SetDesignModeState(IDictionary)

Sets design-time data for a control.

(Inherited from Control)
SetRenderMethodDelegate(RenderMethod) SetRenderMethodDelegate(RenderMethod) SetRenderMethodDelegate(RenderMethod) 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) SetTraceData(Object, Object) SetTraceData(Object, Object) 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)
SetTraceData(Object, Object, Object) SetTraceData(Object, Object, Object) SetTraceData(Object, Object, Object) 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)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TrackViewState() TrackViewState() TrackViewState() 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) ValidateDataSource(Object) ValidateDataSource(Object) ValidateDataSource(Object)

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

Events

CallingDataMethods CallingDataMethods CallingDataMethods CallingDataMethods

Occurs when data methods are being called.

(Inherited from DataBoundControl)
Click Click Click Click

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

CreatingModelDataSource CreatingModelDataSource CreatingModelDataSource CreatingModelDataSource

Occurs when the ModelDataSource object is being created.

(Inherited from DataBoundControl)
Customize Customize Customize Customize

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

CustomizeLegend CustomizeLegend CustomizeLegend CustomizeLegend

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

CustomizeMapAreas CustomizeMapAreas CustomizeMapAreas CustomizeMapAreas

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

DataBinding DataBinding DataBinding DataBinding

Occurs when the server control binds to a data source.

(Inherited from Control)
DataBound DataBound DataBound DataBound

Occurs after the server control binds to a data source.

(Inherited from BaseDataBoundControl)
Disposed Disposed Disposed 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 FormatNumber FormatNumber FormatNumber

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

Init Init Init Init

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

(Inherited from Control)
Load Load Load Load

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

(Inherited from Control)
PostPaint PostPaint PostPaint PostPaint

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

PrePaint PrePaint PrePaint PrePaint

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

PreRender PreRender PreRender PreRender

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

(Inherited from Control)
Unload Unload Unload Unload

Occurs when the server control is unloaded from memory.

(Inherited from Control)

Explicit Interface Implementations

IAttributeAccessor.GetAttribute(String) IAttributeAccessor.GetAttribute(String) IAttributeAccessor.GetAttribute(String) IAttributeAccessor.GetAttribute(String)

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

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

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

(Inherited from WebControl)
IControlDesignerAccessor.GetDesignModeState() IControlDesignerAccessor.GetDesignModeState() IControlDesignerAccessor.GetDesignModeState() IControlDesignerAccessor.GetDesignModeState()

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

(Inherited from Control)
IControlDesignerAccessor.SetDesignModeState(IDictionary) IControlDesignerAccessor.SetDesignModeState(IDictionary) IControlDesignerAccessor.SetDesignModeState(IDictionary) IControlDesignerAccessor.SetDesignModeState(IDictionary)

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

(Inherited from Control)
IControlDesignerAccessor.SetOwnerControl(Control) IControlDesignerAccessor.SetOwnerControl(Control) IControlDesignerAccessor.SetOwnerControl(Control) IControlDesignerAccessor.SetOwnerControl(Control)

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

(Inherited from Control)
IParserAccessor.AddParsedSubObject(Object) IParserAccessor.AddParsedSubObject(Object) IParserAccessor.AddParsedSubObject(Object) IParserAccessor.AddParsedSubObject(Object)

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

(Inherited from Control)
IPostBackEventHandler.RaisePostBackEvent(String) IPostBackEventHandler.RaisePostBackEvent(String) IPostBackEventHandler.RaisePostBackEvent(String) IPostBackEventHandler.RaisePostBackEvent(String)

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

Extension Methods

EnablePersistedSelection(BaseDataBoundControl) EnablePersistedSelection(BaseDataBoundControl) EnablePersistedSelection(BaseDataBoundControl) EnablePersistedSelection(BaseDataBoundControl)

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

FindDataSourceControl(Control) FindDataSourceControl(Control) FindDataSourceControl(Control) FindDataSourceControl(Control)

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

FindFieldTemplate(Control, String) FindFieldTemplate(Control, String) FindFieldTemplate(Control, String) FindFieldTemplate(Control, String)

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

FindMetaTable(Control) FindMetaTable(Control) FindMetaTable(Control) FindMetaTable(Control)

Returns the metatable object for the containing data control.

Applies to