Hide Comments
Hide Comments

TRSHighLowAverageChart.WantsCaptions(TRSChartAxis) Method

Comments (0)

Returns true if the chart prefers Captions over Values for its labels on the input Axis. This method provides a hint to the TRSChartAxis when LabelStyle is alsAutomatic.

Namespace: RSBarCharts

expandingSyntax

Delphi

protected
  function WantsCaptions(const Axis: TRSChartAxis): Boolean; override;
 

Parameters

Axis

Type: TRSChartAxis

Return Value

Type: Boolean

Overrides

TRSCustomSparseBarChart.WantsCaptions(TRSChartAxis)
 

expandingExamples

The custom bar chart uses this method to indicate it prefers captions for the bottom of the bars:

Delphi

function TRSCustomBarChart.WantsCaptions(const Axis: TRSChartAxis): Boolean;
 begin
   result := ((Axis.Location in VerticalAxes) and (Orientation = boHorizontal)) or
             ((Axis.Location in HorizontalAxes) and (Orientation = boVertical));
 end;
 

expandingSee Also

Comments (0)

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