flotr2.examples.types.js
function drawGraph (opts) {

    // Clone the options, so the 'options' variable always keeps intact.
    var o = Flotr._.extend(Flotr._.clone(options), opts || {});

    // Return a new graph.
    return Flotr.draw(
      container,
      [ d1, d2, d3 ],
      o
    );
  }
function drawGraph (opts) {

    // Clone the options, so the 'options' variable always keeps intact.
    var o = Flotr._.extend(Flotr._.clone(options), opts || {});

    // Return a new graph.
    return Flotr.draw(
      container,
      [ d1, d2, d3 ],
      o
    );
  }
function drawGraph ( opts ) { // Clone the options, so the 'options' variable always keeps intact. var o = Flotr . _ . extend ( Flotr . _ . clone ( options ) , opts || { } ) ; // Return a new graph. return Flotr . draw ( container , [ d1 , d2 , d3 ] , o ) ; }
Draw graph with default options, overwriting with passed options
Draw graph with default options overwriting with passed options