Hide Comments
Hide Comments

Comments (0)

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.

noteNote

DataFields holds the field names associated with each *dimension* in the TRSChartValue internal array PLUS one. The last index holds the Caption's FieldName

alert_noteNotes 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

expandingInheritance Hierarchy

TDataLink
  RSDBCharts.TRSChartDataLink
    RSDBCharts.TRSPathChartDataLink
 

expandingSyntax

Delphi

type 
  TRSChartDataLink = class(TDataLink) 
  end;  
 

expandingConstructors

 

Name

Description

public constructor

Create(TRSCustomChart)

Initializes a new instance of the TRSChartDataLink class.

Top

expandingProperties

 

Name

Description

public property

ChartFieldCount

Returns the number of chart fields (TFields associated with a chart dimension) plus 1 for Caption.

public property

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.

protected property

DataChanging

Represents property DataChanging.

public property

DataFields[Integer]

Defines the names of the TRSChartValue.Values dimension

public property

FieldCount

Returns the number of fields in the DataSet

public property

Fields[Integer]

Returns a TField for all the fields in the Dataset

public property

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.
 

public property

OnDataSetChanged

Occurs when the dataset changed

public property

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

public property

OnLayoutChanged

Occurs after the layout has changed in a way that affects the representation of the dataset.
 

public property

Parent

Returns the chart that owns the data link

Top

expandingMethods

 

Name

Description

protected method

ActiveChanged

Represents method ActiveChanged.

protected method

DataSetChanged

Represents method DataSetChanged.

protected method

DataSetScrolled(Integer)

Represents method DataSetScrolled(Integer).

protected method

DoActiveChanged

Represents method DoActiveChanged.

protected method

DoDataChanged

Overloaded. Represents method DoDataChanged.

protected method

DoDataChanged(TRSChartValueTypeArray)

Overloaded. Represents method DoDataChanged(TRSChartValueTypeArray).

protected method

DoLayoutChanged

Represents method DoLayoutChanged.

protected method

LayoutChanged

Represents method LayoutChanged.

protected method

RecordChanged(TField)

Represents method RecordChanged(TField).

Top

expandingEvents

 

Name

Description

public event

OnDataSetScrolled

Occurs when the dataset has finished scrolling

public event

OnRecordChanged

Occurs on changes in the current record or field of the DataSource

Top

expandingFields

 

Name

Description

protected field

FChartValueFields

Represents field FChartValueFields.

Top

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb