Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxGridChartView.OnGetValueHint Event

In This Article

Occurs when the text of a hint for a series value in the View needs to be determined.

#Declaration

Delphi
property OnGetValueHint: TcxGridChartGetValueHintEvent read; write;

#Remarks

To provide detailed information on the values (data markers) shown in the chart, Chart Views are capable of displaying value hints when an end-user hovers the mouse over the values. Handle the View’s OnGetValueHint event to customize the text of the value hint for a series value in the View specified by the Sender parameter. The series value is addressed by the ASeries and AValueIndex parameters which specify the series and the index of the series value in the Values collection of the corresponding series, respectively. The text of the value hint is returned via the AHint parameter which initially equals the GetValueHintText function’s return value.

By default, the text of the value hints which is returned by the GetValueHintText function includes the display text for the corresponding series and string representations of the corresponding category label and series value (as they appear in the chart according to the corresponding formats applied) for the value which is currently under the mouse pointer.

Use the Chart View’s OptionsBehavior.ValueHints property to control the visibility of the value hints within the View.

See Also