| control.Region(n).AnySeries([n]).SetCustomToolTipText(nIndex, sText) | ||
| Purpose | Sets an individual text for the tooltip of a given data point. | |
| Parameter | ||
| nIndex Long | The index of the data point (starting with 1), which gets the tooltip text. | |
| sText String | The text for the tooltip. | |
| Return value | If successful 0, in case of an error, an element of the RMCError enumeration. | |
| Remarks | If you enable tooltips for your chart (see RMCToolTipWidth), the data value of each data point builds the tooltip text. With this method you can overwrite this default for each data point or only for single points. You can set the text either before drawing the chart, or at any time later in your program. If you want to delete a previously added text, just pass an empty string. | |
| Example | ' Enable tooltips for your chart somewhere in the code: RMChartX1.RMCToolTipWidth = 100 ' Add a custom text for the third bar of a bar series: RMChartx1.Region(1).BarSeries(1).SetCustomToolTipText 3, "Third Bar" + CRLF + "Value: 40" + CRLF + "Color: Red" | |