Open GoogleCodeExporter opened 8 years ago
In order to maintain the chainable behavior in jQuery, the script should
actually returns "this" after function call.
So here comes another updated script. ;)
It's just chainable as,
$("<div/>") // Creates an anonymous div node
.width(600).height(300) // Custom sizing
.appendTo("body") // Append for chart calculations
.plot(data) // Render the chart
.hide().fadeIn(300); // Shows up afterwards
Original comment by den...@gmail.com
on 22 Dec 2011 at 9:40
Attachments:
Original comment by dnsch...@gmail.com
on 1 May 2012 at 10:30
Original comment by dnsch...@gmail.com
on 15 May 2012 at 3:32
Hi,
We attempted to implement this enhancement using the above suggestion.
The additional code handles friendly jQuery syntax for plotting, e.g.
$("#placeholder").plot( .... ) by constructing a function that passes the
arguments to the (unchanged) plot function.
Using either syntax, however, passing in a class returns only one plot object
instead of a plot object for each element of that class.
We can either modify the additional code to handle classes by looping, or we
can change the way flot handles the placeholder object, depending on whether it
contains a single object or multiple.
What do you think is the best way to proceed?
Thanks,
Trucy
Original comment by trucy.p...@gmail.com
on 14 Jul 2012 at 9:39
Original issue reported on code.google.com by
den...@gmail.com
on 22 Dec 2011 at 9:17Attachments: