Provides a data-aware link for the TRSChart and its descendants. Since this data link is being used in multiple descendants, it does most of the work so that little extra code is written in each chart type. The events are for unexpected uses.
Note
|
DataFields holds the field names associated with each *dimension* in the TRSChartValue internal array PLUS one. The last index holds the Caption's FieldName
|
Notes to Callers
|
Data-aware charts use the TRSChartDataLink to provide a mapping of data field names to their Values dimension. They should expose properties that allow the user to input dataset field names for each dimension of their TRSChartValue.Values property. These field names would be placed in
DataFields property.
|
Namespace: RSDBCharts
Delphi
|
type
TRSChartDataLink = class(TDataLink)
end;
|
|
Name
|
Description
|
|
ChartFieldCount
|
Returns the number of chart fields (TFields associated with a chart dimension) plus 1 for Caption.
|
|
ChartFields[Integer]
|
Returns the DataSet TField associated with the TRSChartValue.Values dimension (Index). The association of TField and Name is specified in the DataFields property.
|
|
DataChanging
|
Represents property DataChanging.
|
|
DataFields[Integer]
|
Defines the names of the TRSChartValue.Values dimension
|
|
FieldCount
|
Returns the number of fields in the DataSet
|
|
Fields[Integer]
|
Returns a TField for all the fields in the Dataset
|
|
OnActiveChanged
|
Occurs when the Active property of the TRSChartDataLink changes.
Write an OnActiveChange event handler to take specific action immediately after the dataset transitions into or out of an active state. OnActiveChange is particularly useful for updating objects to reflect changes that occurred while the dataset was not active, as the object can not respond to events while its TRSChartDataLink is not Active.
|
|
OnDataSetChanged
|
Occurs when the dataset changed
|
|
OnGetChartValue
|
Occurs when the data has changed and the dataset needs a chart value. Use this event to retrieve chart values that cannot be automatically handled by the TRSChartDataLink
|
|
OnLayoutChanged
|
Occurs after the layout has changed in a way that affects the representation of the dataset.
|
|
Parent
|
Returns the chart that owns the data link
|
Top
|