| Search Locate Previous Next | Contents |
This function adds hints to a given set of data points, so that as you move the mouse over the data in the viewer, the hint can be shown in the status bar at the bottom of the screen. You can also call the psFindHint function from your application code (typically on a mouse-move event) to detect these hints and display them in your own applications.
The argument may be a 3-element vector (row,column index in the data series and text for the hint):
chHint 5 1 'This one is exploded!'
Hints are used to create onMouseOver events in VML so that the user will see the hint in the status line when the mouse is waved over the hotspot in the chart.
Setting up hints for multiple data series
If you want to plot several independent series on the same chart, and have different hints for each series, you must name the series explicitly with chSeries so that the viewer can correctly identify the hints from the data points:
chSeries'One' chHint 3 3½1 1 '1/1' 2 1 '1/2' 3 1 '1/3' chPlot(¼10) chSeries'Two' chHint 3 3½1 1 'A/1' 2 1 'A/2' 4 1 'A/4' chPlot²¼10 PGchClose
This is often good practice anyway, as the viewer will show the series name in addition to the row/column co-ordinates for all named series.
See also ...
chTip supply pop-up tips for data points
CHINT mouse over hinted data
Hints apply hints to data values