I would advise to use jQuery JavaScript library for this purpose.
Most likely, you need something like this "input hint box":
http://archive.plugins.jquery.com/project/floating_hint_box[
^].
Basically, you would need to use the method
.hover
:
$(document).ready(function() {
myGraph = $("#myGraph");
myGraph.hover(
function () {
showHint(myGraph, );
},
function () {
hideHint(myGraph, );
}
);
});
The methods
showHint
and
hideHint
can be developed separately, based on the "input hint control" shown above, or something similar. You will be able to find a great number of so called jQuery plug-ins to get different ways of presenting of you hint text control with different transition effects, etc.
See also:
http://api.jquery.com/category/selectors/[
^],
http://api.jquery.com/id-selector/[
^],
http://api.jquery.com/hover/[
^].
If you need to learn jQuery, please start here:
http://en.wikipedia.org/wiki/JQuery[
^],
http://docs.jquery.com/[
^],
http://docs.jquery.com/Tutorials[
^],
http://docs.jquery.com/Tutorials:How_jQuery_Works[
^].
—SA