SharpPlot Reference > SharpPlot Methods > AddHints Method

SharpPlot.AddHints Method

Set hints for one or more data points or a chart object.

Example

sp.AddHints(new string[] {"Jan","Feb","Mar"});
sp.AddHints(ScriptTarget.Footnote,"This is the footer.");

Overloads

Description

This method 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. Hints are supported by VML (directly) and by images if you create an associated imagemap. The SVG viewer does not currently show hints correctly.

To create hints for every datapoint in a series, pass an array of strings, matching the structure of your data.

sp.AddHints(Product_descriptions);

Here, a product description could be associated with each pie sector, bar segment or marker.

You may also target hints at specific data points, for example:

sp.AddHints("July figures were adjusted",7);

Which will add a hint to this specific data-item in the first (or only) series.

Adding hints to fixed items

Hints may also be used to add extra information to standard text items such as notes or headings.

ch.AddHints(ScriptTarget.Footnote,"This is the current budget");

You may give an array of hints for multiple items such as XZones or the legend text.

See also ...

SharpPlot Members | SharpPlot.AddTips Method | ScriptTarget Enumeration


Send comments on this topic
© Dyalog Ltd 2016