diff --git a/examples/graph3d/11_tooltips.html b/examples/graph3d/11_tooltips.html index 39af19aa..c37b35f4 100644 --- a/examples/graph3d/11_tooltips.html +++ b/examples/graph3d/11_tooltips.html @@ -5,6 +5,12 @@ @@ -24,11 +30,11 @@ // Create and populate a data table. data = new vis.DataSet(); - var extra_content = [ - 'Arbitrary information', - 'You can access data from the point source object', - 'Tooltip example content', - ]; + var extra_content = [ + 'Arbitrary information', + 'You can access data from the point source object', + 'Tooltip example content', + ]; // create some nice looking data with sin/cos var steps = 5; // number of datapoints will be steps*steps @@ -42,7 +48,7 @@ data.add({x:x, y:y, z: z, style:value, extra: extra_content[(x*y) % extra_content.length]}); } else { - data.add({x:x, y:y, z: z, extra: extra_content[(x*y) % extra_content.length]}); + data.add({x:x, y:y, z: z, extra: extra_content[(x*y) % extra_content.length]}); } } } @@ -61,8 +67,8 @@ //tooltip: true, tooltip: function (point) { // parameter point contains properties x, y, z, and data - // data is the original object passed to the point constructor - return 'value: ' + point.z + '
' + point.data.extra; + // data is the original object passed to the point constructor + return 'value: ' + point.z + '
' + point.data.extra; }, keepAspectRatio: true, @@ -106,6 +112,7 @@
-
+
Hover the mouse cursor over the graph to see tooltips.
+