summaryrefslogtreecommitdiff
path: root/examples/interacting.html
diff options
context:
space:
mode:
authorIgor Sfiligoi <isfiligoi@ucsd.edu>2011-03-22 07:30:12 -0400
committerIgor Sfiligoi <isfiligoi@ucsd.edu>2011-03-22 07:30:12 -0400
commitcb2e3d2743c0f88b430f14b7a396aa1a583dc978 (patch)
treea01293736eef098deff6d1cc832dcba0731ebb3e /examples/interacting.html
parentaf26aaa53d073a7b2d25caee93e1cb5ceb2e099c (diff)
flot-0.7
Diffstat (limited to 'examples/interacting.html')
-rw-r--r--examples/interacting.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/interacting.html b/examples/interacting.html
index fbf0390..d04eedd 100644
--- a/examples/interacting.html
+++ b/examples/interacting.html
@@ -3,8 +3,8 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Flot Examples</title>
- <link href="layout.css" rel="stylesheet" type="text/css"></link>
- <!--[if IE]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
+ <link href="layout.css" rel="stylesheet" type="text/css">
+ <!--[if lte IE 8]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="../jquery.js"></script>
<script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
</head>
@@ -24,7 +24,7 @@
<p><input id="enableTooltip" type="checkbox">Enable tooltip</p>
-<script id="source" language="javascript" type="text/javascript">
+<script type="text/javascript">
$(function () {
var sin = [], cos = [];
for (var i = 0; i < 14; i += 0.5) {
@@ -62,8 +62,8 @@ $(function () {
if ($("#enableTooltip:checked").length > 0) {
if (item) {
- if (previousPoint != item.datapoint) {
- previousPoint = item.datapoint;
+ if (previousPoint != item.dataIndex) {
+ previousPoint = item.dataIndex;
$("#tooltip").remove();
var x = item.datapoint[0].toFixed(2),