summaryrefslogtreecommitdiff
path: root/examples/interacting.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/interacting.html')
-rw-r--r--examples/interacting.html13
1 files changed, 7 insertions, 6 deletions
diff --git a/examples/interacting.html b/examples/interacting.html
index 5cb59d0..fbf0390 100644
--- a/examples/interacting.html
+++ b/examples/interacting.html
@@ -33,12 +33,13 @@ $(function () {
}
var plot = $.plot($("#placeholder"),
- [ { data: sin, label: "sin(x)"}, { data: cos, label: "cos(x)" } ],
- { lines: { show: true },
- points: { show: true },
- selection: { mode: "xy" },
- grid: { hoverable: true, clickable: true },
- yaxis: { min: -1.2, max: 1.2 }
+ [ { data: sin, label: "sin(x)"}, { data: cos, label: "cos(x)" } ], {
+ series: {
+ lines: { show: true },
+ points: { show: true }
+ },
+ grid: { hoverable: true, clickable: true },
+ yaxis: { min: -1.2, max: 1.2 }
});
function showTooltip(x, y, contents) {