Skip to main content

TdxChartHitTest.Series Property

Provides access to the series to which the inspected point belongs.

Declaration

property Series: TdxChartCustomSeries read;

Property Value

Type Description
TdxChartCustomSeries

The currently inspected series. This property returns nil (in Delphi) or nullptr (in C++Builder) if the inspected point is not within the area occupied by a series.

Remarks

You can use the Series property to identify and access a series at the inspected point; that is, when the HitCode property returns one of the following values:

Series

The inspected point belongs to a series in a diagram.

You can use Series and Diagram properties to access the inspected series and its parent diagram, respectively. Cast the Series property value to the TdxChartSimpleSeries or TdxChartXYSeries class depending on the actual series type to access all series-specific public API members.

SeriesPoint

The inspected point belongs to a series point in a diagram.

You can use SeriesPoint, Series, and Diagram properties to access the inspected series point and its parent series and diagram, respectively.

SeriesTitle

The inspected point belongs to a Pie or Doughnut series title.

You can use Title, Series, and Diagram properties to access the inspected title and its parent series and diagram, respectively. Cast the Title property value to the TdxChartSeriesTitle class to access all public API members of the inspected series title.

SeriesValueLabel

The inspected point is within a series value label.

You can use SeriesValueLabel, SeriesPoint, and Diagram properties to access the inspected series value label, and its parent series point and diagram, respectively.

TotalLabel

The inspected point belongs to a total label of a Pie or Doughnut series.

You can use TotalLabel and Diagram properties to access the inspected total label and its parent diagram, respectively.

When the inspected point belongs to a series, you can also use the Diagram property to access the parent diagram of the inspected series.

VCL Chart Control: An Inspected Series

See Also