Browse files

Document the new plot chainable property.

  • Loading branch information...
1 parent 49cce02 commit aaa1cc7f84881addb5029e4ccf1e695eefd40403 @dnschnur committed Feb 7, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 API.md
View
8 API.md
@@ -15,6 +15,14 @@ don't use for anything else. Make sure you check any fancy styling
you apply to the div, e.g. background images have been reported to be a
problem on IE 7.
+The plot function can also be used as a jQuery chainable property. This form
+naturally can't return the plot object directly, but you can still access it
+via the 'plot' data key, like this:
+
+```js
+var plot = $("#placeholder").plot(data, options).data("plot");
+```
+
The format of the data is documented below, as is the available
options. The plot object returned from the call has some methods you
can call. These are documented separately below.

0 comments on commit aaa1cc7

Please sign in to comment.