| Search Locate Previous Next | Contents |
Adds text notes to the completed chart.
chNote 'Here is;a 2-line note' 20 30 chNote 'This is angled at 45deg' 20 30 45 chNote 'This is wrapped into a column 10units wide' 20 30 0 10
The data should be at least a three-element list of text and (x,y) position. Line-breaks are marked by semi-colons in the text or you may use the maxwidth parameter to force RainPro to wrap the text for you. The Xposition gives the starting point of the text in the co-ordinate system of the chart; the Yposition specifies the baseline position of the top line, measured on the Yaxis. To position notes on a piechart, assume an imaginary co-ordinate system of 0100 in both dimensions. You may also set the NoteStyle to absolute and give positions in points (relative to the lower left corner of the plotting region) if you prefer. The note text may be centred or right-aligned on the x-position you give. You can make minor adjustments to the note positioning with the NoteNudge property, which takes an (x,y) displacement in points.
To position notes on a barchart, note that the bars are placed at X-values 0.5, 1.5, 2.5 and so on, regardless of the numeric values written on the X-axis tick marks.
To write notes vertically add the required rotation (90 in this case) as the fourth element of the position. Vertical notes are base-aligned on the position you give unless you set the note-style to right in which case they are top-aligned. The boxed and shadowed styles are ignored for rotated notes.
To set the maximum width (in chart co-ordinates unless you are using the absolute style) of the text, add a 4th element giving the column width (you will need to specify 0 for the rotation). The text is then wrapped into this width, breaking at any occurrence of blank, hyphen or your chosen SoftHyphen character (the default is tilde~).
See also ...
chNextNote y-position of next note
NoteFont note font
NoteNudge Nudge note position
NoteStyle note style
SoftHyphen optional line-breaks