.netCHARTING v10.7 Documentation
Properties  Methods  Events

Chart Class Members

The following tables list the members exposed by Chart.

Public Constructors
 NameDescription
Public ConstructorInitializes a new empty instance of the Chart control.  
Top
Public Properties
 NameDescription
Public PropertyGets or sets the access key that allows you to quickly navigate to the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets text displayed in place of a chart when images can't be viewed. This property can also be used as a tooltip for the chart in browsers that support this feature.  
Public PropertyA collection of Annotation objects drawn on the chart.  
Public PropertyGets or sets the application-relative virtual directory of the System.Web.UI.Page or System.Web.UI.UserControl object that contains this control. (Inherited from System.Web.UI.Control)
Public PropertyGets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets a value which indicates whether elements and series are automatically named when no names are provided.  
Public PropertyContains a collection of calculated Axis objects.  
Public PropertyGets or sets the background color of the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets the Background of this chart.  
Public PropertyGets the control that contains this control's data binding. (Inherited from System.Web.UI.Control)
Public PropertyGets or sets the border color of the Web control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets the border style of the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets the border width of the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public Property

Gets or sets an Annotation object that is drawn as the background for this chart.

 
Public PropertyGets or sets a boolean value to control bubble center stack.  
Public PropertyGets or sets a boolean value to control bubble stack shade.  
Public PropertyGets or sets the number of minutes an image is cached and displayed on a page before a new one is generated.  
Public PropertyGets or sets a value indicating whether the values of empty elements are percieved as 0 or omitted in calculations performed with the Chart.SeriesCollection.Add(Calculation calc) shortcut.  
Public PropertyGets or sets the main ChartArea of the image.  
Public PropertyGets or sets chart area layout options.  
Public PropertyGets or sets a value in pixels that defines the spacing between boxes like chart areas and legends.  
Public PropertyGets or sets the minimum number of minutes images are stored in the TempDirectory before they are deleted.  
Public PropertyGets or sets the number of minutes images are stored in the TempDirectory folder before they are deleted.  
Public PropertyGets the control ID for HTML markup that is generated by ASP.NET. (Inherited from System.Web.UI.Control)
Public PropertyGets or sets a value which determines if gauges should be clipped (cut) to display only the active area.  
Public PropertyGets a System.Web.UI.ControlCollection object that represents the child controls for a specified server control in the UI hierarchy. (Inherited from System.Web.UI.Control)
Public PropertyGets the style of the Web server control. This property is used primarily by control developers. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets a value indicating whether a System.Web.UI.WebControls.Style object has been created for the System.Web.UI.WebControls.WebControl.ControlStyle property. This property is primarily used by control developers. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets the culture name used when StartDate and EndDate insert to the sql statement. This property only necessary to set if the web server and database server having different culture setting.  
Public PropertyGets or sets the control object or ID of a datagrid control that will be populated with the charted data.  
Public PropertyAdds element's custom attributes to the DataGrid control specified by the DataGrid property.  
Public PropertyGets or sets the format string which determines number formatting in the datagrid.

 
Public PropertyGets or sets the header label of the DataGrid control specified by the DataGrid property.  
Public PropertyGets or sets a value indicating whether the data with which the specified DataGrid control is populated will be transposed.  
Public PropertyGets or sets a TimeInterval enumeration which determines how the values of a given series are aggregated by date when retrieved from a database.  
Public PropertyGets or sets an enum which determines how values are grouped to create a single element value.  
Public PropertyGets or sets a value indicating whether to maintain the sort order of the data as it is provided.  
Public PropertyGets or sets a value that indicates whether debug messages are displayed below the chart.  
Public PropertyGets or sets an Axis object whose properties will trickle down to all other axes on the chart unless otherwise specified.  
Public PropertyGets a base box object that is used as a vehicle for property settings which will become the defaults settings of all elements on the chart that derive from box.  
Public PropertyGets a ChartArea object whose property settings will propagate to all other ChartArea objects on the chart image.  
Public PropertyGets or sets the default culture name which determines number and date formatting.  
Public PropertyGets or sets an Element object whose properties will trickle to all other elements on the chart unless otherwise specified. This is a shortcut to the DefaultSeries.DefaultElement property.  
Public PropertyGets or sets the default format string which determines number and date formatting.

See Chart.DefaultAxis.FormatString.  
Public PropertyGets a LegendBox object whose property settings will propagate to all other LegendBox objects on the chart image.  
Public PropertyGets or sets a Series object whose properties will trickle to all other series on the chart unless otherwise specified.  
Public PropertyGets or sets a shadow object whose properties will trickle to all other objects with shadows.  
Public PropertyGets a Box object whose property settings will propagate to all title boxes on the chart image.  
Public PropertyGets or sets depth of the chart when Use3D is true.  
Public PropertyGets or sets a value indicating whether disable browser cache.  
Public PropertyGets or sets a percentage value which determines the relative thickness of the donut ring when ChartType.Donut is used.  
Public PropertyGets or sets the resolution, in dots per inch, of the chart Bitmap.  
Public Property

Gets or sets the drill down chain which activates automatic time based drill down if date grouping used.

If Limit or SplitByLimit used with ShowOther option, setting drill down chain to "Other" or "OtherAll" activates automatic drill down to other elements or series.

"OtherAll" shows all other elements or series in the second level.
"Other" shows the next number of elements or series has been set in limit or splitByLimit propertes.

 
Public PropertyWhen using automated drill down in conjunction with date grouping and multiple series, this property determines if drill down will occur into a single series or multiple series.  
Public PropertyGets or sets the default text of empty element labels. See Chart.DefaultSeries.DefaultElement.SmartLabel  
Public PropertyGets or sets a value indicating whether the Web server control is enabled. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets a value indicating whether themes apply to this control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. (Inherited from System.Web.UI.Control)
Public PropertyGets or sets the relative percentage an exploded slice should be pulled out from the pie or donut.  
Public PropertyGets a collection of additional ChartArea objects added to the chart.  
Public PropertyGets a collection of additional LegendBox objects added to the chart.  
Public PropertyGets or sets the chart's instance of the FileManager which facilitates saving images.  
Public PropertySee Chart.FileManager.FileName.  
Public PropertyGets or sets Jpg file quality. (Worse quality) 0 - 100 (Best quality)  
Public PropertyGets the font properties associated with the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets the foreground color (typically the color of the text) of the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets a numeric value between 0 and 100 that indicates the percentage of the full funnel height that comprises the funnel's nozzle.  
Public PropertyGets or sets a numeric value between 0 and 100 that indicates the percentage of the full funnel width that comprises the funnel's nozzle.  
Public PropertyGets or sets a numeric value between 0 and 100 that indicates the percentage of the funnel's spacing.  
Public PropertyGets or sets the hatch style drawn on columns and cylinders when an element's Element.Complete value is set.  
Public PropertyGets a value indicating whether the control has attributes set. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets a hatch style palette that will trickle to all series on the chart. The hatch patterns will not show on chart elements if a hatch color is not specified. The default hatch color can be specified with the Chart.DefaultSeries.DefaultElement.HatchColor property.  
Public PropertyGets or sets a predefined HatchStylePalette that defines element and series hatch style.  
Public PropertyOverridden. Gets or sets the height of the chart image.  
Public PropertyGets or sets the Hotspot property of the chart image.  
Public PropertyGets or sets a value that indicates the minimum size in pixels a hotspot must be in order for it to be generated.  
Public PropertyGets or sets the programmatic identifier assigned to the server control. (Inherited from System.Web.UI.Control)
Public PropertyGets or sets an ImageFormat enumeration specifying the generated image's file type.  
Public PropertyReturns a string for the image map name generated for the current chart image.  
Public PropertyReturns a string for the image map generated for the current chart image.  
Public PropertyProvides JavaScript chart functionality.  
Public PropertyGets or sets a value that indicates whether original chart defaults are used instead of new defaults introduced with version 10.  
Public PropertyGets or sets a LegendBox object that represents the legend box.  
Public PropertyIn a multiple series chart, this property controls the primary series used for the Limit operation. Other series' elements will be matched with the primary series elements and that order will be maintained regardless of the values of the other series. For example, if you limit to the top 5 values and set the LimitPrimarySeries to the sales series other series such as dollar amount or quantity would not affect which elements were ultimately selected for the chart.  
Public PropertyThis property is used only when using a map chart: (Chart.Type = ChartType.Map).  
Public PropertyGets or sets a string which automatically sets multiple margins as a shortcut.  
Public PropertyGets or sets the bottom margin of the chart image.  
Public PropertyGets or sets the left margin of the chart image.  
Public PropertyGets or sets the right margin of the chart image.  
Public PropertyGets or sets the top margin of the chart image.  
Public PropertyGets or sets a value which controls the maximum size of bubbles when ChartType.Bubble is used.  
Public PropertyGets or sets the maximum value the bubble size will be based on where a bubble size value of MaximumBubbleSizeValue equals a bubble of size MaximumBubbleSize.  
Public PropertyGets or sets a value that indicates whether the mentor is shown under the chart control. The mentor also requires that Chart.Debug is set to true.  
Public PropertyGets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same System.Web.UI.Control.ID property value. (Inherited from System.Web.UI.Control)
Public PropertyProvides SliverLight functionality.  
Public PropertyGets or sets a label shown on the chart when no data is available.  
Public PropertyGets or sets an object that will be drawn instead of the chart and will dynamically resize the chart image to fit the object's size. The supported objects are Label and Annotation.  
Public Property(JS Chart Only) Specifies the connector type (straight or right-angle) for organizatioal charts.  
Public PropertyGets or sets a value indicating whether the 'unlicensed chart' footer overlaps the chart or moves it up.  
Public PropertyGets a reference to the System.Web.UI.Page instance that contains the server control. (Inherited from System.Web.UI.Control)
Public PropertyGets or sets an array of colors that define element and series colors.  
Public PropertyGets or sets a predefined Palette that defines element and series colors.  
Public PropertyGets a reference to the server control's parent control in the page control hierarchy. (Inherited from System.Web.UI.Control)
Public PropertySee DefaultSeries.DefaultElement.SmartLabel.PieLabelMode.  
Public PropertyWhen using date grouping the main value in the element is derived from the actual values in the database or data provided to .netCHARTING. This property controls whether these subvalues used in the calculation to determine the element value are added to SubValues or not. By default, such values are not added to the element subvalues.  
Public PropertyGets or sets a value that indicates whether text rendered on the chart optimized for printing.  
Public PropertySee DefaultSeries.DefaultElement.SmartLabel.RadarLabelMode.  
Public PropertyGets or sets a System.TimeSpan object that determines how often the page containing this chart will automatically reload.  
Public PropertyGets or sets a series which is added to the chart's main SeriesCollection when the Chart.SeriesCollection.Add() method is invoked.  
Public PropertyGets a SeriesCollection object which represents the data this chart will render.  
Public PropertyGets or sets a ShadingEffectMode enumeration indicating how elements on the chart are shaded.  
Public PropertyGets or sets a value which indicates whether specified dates are shown in the title. The formatting of the shown dates can be controlled with Chart.DefaultCultureName.  
Public PropertyGets information about the container that hosts the current control when rendered on a design surface. (Inherited from System.Web.UI.Control)
Public PropertySets a string that automatically sets the Height and Width of the chart image.  
Public PropertyGets or sets the skin to apply to the control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets a value that indicates whether this chart uses the SmallChartMode.  
Public PropertyGets or sets a TimeIntervalAdvanced object that specifies a time span shown on the chart. The span shown is an interval which encompasses the time the chart is rendered. A trend line is also added for the entire span shown and uses values not shown in it's calculation to improve accuracy.  
Public PropertyGets or sets a NameColorCollection object that specifies the colors of elements and series with specific names.  
Public PropertyGets or sets a boolean which controls smart palette synchronization.  
Public PropertyGets or sets the spacing percentage of pyramids, cones, and funnels with ChartType.Multiple .  
Public PropertyGets or sets a value that indicates the spacing percentage of nested pies.  
Public PropertyGets or sets a DateTime object to determine the start month of the year when DateGrouping is used.  
Public PropertyGets or sets a System.DayOfWeek enumeration that indicates the starting day of the week when DateGrouping is used.  
Public PropertyGets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets a TimeInterval enumeration which determines how the values of a given series are aggregated by date when retrieved from a database.  
Public PropertyGets or sets the tab index of the Web server control. (Inherited from System.Web.UI.WebControls.WebControl)
Public PropertyGets or sets the directory where images generated by the control are temporarily stored.  
Public PropertyGets or sets a reference to the template that contains this control. (Inherited from System.Web.UI.Control)
Public PropertyGets the virtual directory of the System.Web.UI.Page or System.Web.UI.UserControl that contains the current server control. (Inherited from System.Web.UI.Control)
Public PropertyGets or sets the chart title.

Equivalent to Chart.TitleBox.Label.Text.  
Public PropertyGets or sets a Box object that represents the title box.  
Public PropertyOverridden. Gets or sets the Tooltip of the entinre chart image.  
Public PropertyReturn the total number of series in the seriesCollection. This property usually used in conjunction with SplitByLimit.  
Public PropertyGets or sets a value indicating whether data added to this chart's SeriesCollection property is automatically transposed.  
Public PropertyGets or sets the ChartType of this Chart.  
Public PropertyGets the unique, hierarchically qualified identifier for the server control. (Inherited from System.Web.UI.Control)
Public PropertyGets or sets the URL of the entinre chart image.  
Public PropertyGets or sets the target of the URL link.  
Public PropertyGets or sets a value indicating whether chart elements are rendered in 3D.  
Public PropertyGets or sets a value indicating whether the generated image is saved as a file in the TempDirectory folder or streamed directly to the browser.  
Public Property

Gets or sets a value indicating whether the generated image is saved
temporarily in a session variable for subsequent streaming from a helper aspx page. This option may only be used when UseFile = false.

 
Public PropertyGets or sets the View3D class that contains properties to control the rendering of 3D surface charts.  
Public PropertyGets or sets a value that indicates whether a server control is rendered as UI on the page. (Inherited from System.Web.UI.Control)
Public PropertyOverridden. Gets or sets the width of the chart image.  
Public Property

Gets or Sets the main XAxis which all series inherit by default.

 
Public Property

Gets or Sets the main YAxis which all series inherit by default.

 
Public Property

Gets or Sets the main ZAxis which all series inherit by default. The ZAxis is used with surface charts.

 
Public PropertyProvides AJAX zooming and scrolling feature settings.  
Top
Public Methods
 NameDescription
Public MethodCopies 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 System.Web.UI.WebControls.WebControl)
Public MethodApplies the style properties defined in the page style sheet to the control. (Inherited from System.Web.UI.Control)
Public MethodCopies the properties not encapsulated by the System.Web.UI.WebControls.WebControl.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 System.Web.UI.WebControls.WebControl)
Public MethodBinds a data source to the invoked server control and all its child controls. (Inherited from System.Web.UI.Control)
Public MethodEnables a server control to perform final clean up before it is released from memory. (Inherited from System.Web.UI.Control)
Public Method (Inherited from System.Web.UI.Control)
Public MethodSets input focus to a control. (Inherited from System.Web.UI.Control)
Public MethodObtains a System.Drawing.Bitmap of the generated chart.  
Public MethodReturns a string contains the Javascript chart configuration.  
Public MethodReturns the metafile contains records that describe a sequence of graphics operations that can be recorded (constructed) and played back (displayed).  
Public MethodReturns the memory stream of the image.  
Public MethodObtains a System.Drawing.Bitmap of the legend generated by the chart.  
Public MethodReturns the metafile contains records that describe a sequence of graphics operations that can be recorded (constructed) and played back (displayed).  
Public MethodDetermines if the server control contains any child controls. (Inherited from System.Web.UI.Control)
Public Method  
Public MethodOverloaded. Imports a chart object from the specified xml file.  
Public MethodCopies 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 System.Web.UI.WebControls.WebControl)
Public MethodOverloaded. Adds the colors of a predefined palette to the existing palette colors stored in Palette.  
Public MethodRenders the HTML opening tag of the control to the specified writer. This method is used primarily by control developers. (Inherited from System.Web.UI.WebControls.WebControl)
Public MethodOverridden. Outputs chart server control content to a provided HtmlTextWriter object.  
Public MethodRenders the HTML closing tag of the control into the specified writer. This method is used primarily by control developers. (Inherited from System.Web.UI.WebControls.WebControl)
Public MethodGets a URL that can be used by the browser. (Inherited from System.Web.UI.Control)
Public MethodConverts a URL into one that is usable on the requesting client. (Inherited from System.Web.UI.Control)
Public MethodOverloaded. 

string LoadState()

void LoadState(string xmlFilePath,Chart chartObject)

string LoadState(Chart chartObject)

 
Public MethodOverloaded.   
Public MethodAssigns an event handler delegate to render the server control and its content into its parent control. (Inherited from System.Web.UI.Control)
Top
Public Events
 NameDescription
Public EventOccurs when the server control binds to a data source. (Inherited from System.Web.UI.Control)
Public EventOccurs 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 System.Web.UI.Control)
Public Event  
Public EventOccurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from System.Web.UI.Control)
Public EventOccurs when the server control is loaded into the System.Web.UI.Page object. (Inherited from System.Web.UI.Control)
Public EventOccurs when the the chart is completed the data processing.  
Public EventOccurs after the System.Web.UI.Control object is loaded but prior to rendering. (Inherited from System.Web.UI.Control)
Public EventOccurs when the server control is unloaded from memory. (Inherited from System.Web.UI.Control)
Top
See Also