I am using the 2d line graph of vis.js ( http://visjs.org/graph2d_examples.html ). Is there a way to add a tooltip to data points so that when you hover or click you see the value in a popup window or somewhere else?
This is the feature they plan to add. The closest thing I see is a comment on trying to solve the problem on my own:
https://github.com/almende/vis/issues/282#issuecomment-65728474
This solution is rather simpe:
Add a label to points, for example.
var point = { x: ..., y: ..., label: { content: POINT_LABEL } }; points.push(point); var dataset = new vis.DataSet(points);
: https://github.com/almende/vis/issues/282#issuecomment-217528166