Lines Matching refs:plot
122 // re-calculating them when the plot is re-rendered in a loop.
135 throw new Error("Invalid dimensions for plot, width = " + width + ", height = " + height);
506 // The top-level container for the entire plot.
508 function Plot(placeholder, data_, options_, plugins) {
524 position: "ne", // position of default legend container within plot
525 margin: 5, // distance from grid edge to default legend container within plot
617 surface = null, // the canvas for the plot itself
618 overlay = null, // canvas for interactive stuff on top of plot
636 plot = this;
639 plot.setData = setData;
640 plot.setupGrid = setupGrid;
641 plot.draw = draw;
642 plot.getPlaceholder = function() { return placeholder; };
643 plot.getCanvas = function() { return surface.element; };
644 plot.getPlotOffset = function() { return plotOffset; };
645 plot.width = function () { return plotWidth; };
646 plot.height = function () { return plotHeight; };
647 plot.offset = function () {
653 plot.getData = function () { return series; };
654 plot.getAxes = function () {
662 plot.getXAxes = function () { return xaxes; };
663 plot.getYAxes = function () { return yaxes; };
664 plot.c2p = canvasToAxisCoords;
665 plot.p2c = axisToCanvasCoords;
666 plot.getOptions = function () { return options; };
667 plot.highlight = highlight;
668 plot.unhighlight = unhighlight;
669 plot.triggerRedrawOverlay = triggerRedrawOverlay;
670 plot.pointOffset = function(point) {
676 plot.shutdown = shutdown;
677 plot.destroy = function () {
679 placeholder.removeData("plot").empty();
692 plot = null;
694 plot.resize = function () {
702 plot.hooks = hooks;
705 initPlugins(plot);
715 args = [plot].concat(args);
730 p.init(plot, classes);
1303 // from a previous plot in this container that we'll try to re-use.
1322 // If we're re-using a plot object, shut down the old one
1324 var existing = placeholder.data("plot");
1332 placeholder.data("plot", plot);
1367 // set helper functions on the axis, assumes plot area
1526 // possibly adjust plot offset to ensure everything stays
1532 // check stuff from the plot (FIXME: this should just read
1572 // Initialize the plot's offset from the edge of the canvas
1632 // now we got the proper plot dimensions, we can compute the scaling
1953 axes = plot.getAxes();
3142 // Add the plot function to the top level of the jQuery object
3144 $.plot = function(placeholder, data, options) {
3146 var plot = new Plot($(placeholder), data, options, $.plot.plugins);
3148 return plot;
3151 $.plot.version = "0.8.3";
3153 $.plot.plugins = [];
3155 // Also add the plot function as a chainable property
3157 $.fn.plot = function(data, options) {
3159 $.plot(this, data, options);