From f20ab62742bb248eae84829f7b9ab93376394285 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Tue, 14 Dec 2010 16:54:55 +0000 Subject: [PATCH] Add a note about getOptions() being useful for changing the selection color on-the-fly (from issue 370 reported by Mitja Koren) git-svn-id: https://flot.googlecode.com/svn/trunk@277 1e0a6537-2640-0410-bfb7-f154510ff394 --- jquery.flot.selection.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquery.flot.selection.js b/jquery.flot.selection.js index 1179a13..44f292d 100644 --- a/jquery.flot.selection.js +++ b/jquery.flot.selection.js @@ -11,7 +11,9 @@ The plugin defines the following options: Selection support is enabled by setting the mode to one of "x", "y" or "xy". In "x" mode, the user will only be able to specify the x range, similarly for "y" mode. For "xy", the selection becomes a rectangle -where both ranges can be specified. "color" is color of the selection. +where both ranges can be specified. "color" is color of the selection +(if you need to change the color later on, you can get to it with +plot.getOptions().selection.color). When selection support is enabled, a "plotselected" event will be emitted on the DOM element you passed into the plot function. The