Search Locate Previous Next Contents

ch.Hint – add data hints

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 PostScrp.FindHint 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):

ch.Hint 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 ch.Series so that the viewer can correctly identify the hints from the data points:

 ch.Series'One'
 ch.Hint 3 3½1 1 '1/1' 2 1 '1/2' 3 1 '1/3'
 ch.Plot(¼10)
 ch.Series'Two'
 ch.Hint 3 3½1 1 'A/1' 2 1 'A/2' 4 1 'A/4'
 ch.Plot²¼10
 PG„ch.Close

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 ...
ch.Tip – supply pop-up tips for data points
CHINT – mouse over hinted data
Hints – apply hints to data values


Continue to: ch.Href – add HTML jumps
© Copyright Causeway Graphical Systems Ltd 2003