AxChartDataSource
Applies To: Microsoft Dynamics AX 2012 R2
An AxChartDataSource component provides access to a data set in the AOT for a chart. The Chart Control will use the AxChartDataSource to retrieve data in the data set.
Properties
The AxChartDataSource component has the following properties:
Property |
Description |
---|---|
Expressions |
The expressions that are bound to properties of the control. This property is inherited from the base control. It is not used in Enterprise Portal scenarios. |
ID |
A string value that is the programmatic name of the control. The ID naming convention is <ChartName>DataSource. For example, EPChartControl1DataSource. |
CommandText |
The query text for the chart data source that determines the data that gets returned. The DataType property determines which picker will launch when you click the CommandText ellipsis (…) button.
|
DataType |
The type of the data queried by the chart data source. The following data types are supported by the AxChartDataSource component:
|
EnableViewState |
Boolean value that indicates whether the control automatically saves its state for use in round-trips. This property is inherited from the base control. It is not used in Enterprise Portal scenarios. |
Parameters |
The parameters collection for the chart data source. Add the parameters that are required for the chart to render. You can set a default value for each parameter. You must evaluate the data to know what parameters are required. |
Events
A Chart Control can raise life-cycle events at each processing step, such as Init, Load, and PreRender. You can take advantage of these life-cycle events in your application. For example, in a Load event, you can set default values for controls.
The events that occur for Chart Controls are based on the ASP.NET Server Controls. The following section describes the event information that is specific to the Chart Control. For information about ASP.NET Server Control events, see ASP.NET Web Server Control Event Model. The AxChartDataSource component has the events listed in the following table:
Event |
Description |
---|---|
DataBinding |
Occurs before the data binding expressions are evaluated. |
DataSourceChanged |
Occurs when the data source is changed. |
Disposed |
Occurs after the chart control is disposed. |
Init |
Occurs when the page is initialized, which is the first step in its life-cycle. Use this event to read or initialize control properties. |
Load |
Occurs when the page is loaded into the System.Web.UI.Page object. For example, you can set default values for controls in a Load event. |
PostProcessData |
Occurs after the data is processed for the chart control. |
PreRender |
Occurs before the chart control is rendered. |
Unload |
Occurs when the page is unloaded from memory. |