summaryrefslogtreecommitdiff
path: root/examples/interacting.html
diff options
context:
space:
mode:
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),