flotr2.nolibs.js
function (options) {

    var
      context     = options.context,
      lineWidth   = options.lineWidth,
      shadowSize  = options.shadowSize,
      offset;

    context.save();
    context.lineJoin = 'round';

    if (shadowSize) {

      context.lineWidth = shadowSize / 2;
      offset = lineWidth / 2 + context.lineWidth / 2;
      
      // @TODO do this instead with a linear gradient
      context.strokeStyle = "rgba(0,0,0,0.1)";
      this.plot(options, offset + shadowSize / 2, false);

      context.strokeStyle = "rgba(0,0,0,0.2)";
      this.plot(options, offset, false);
    }

    context.lineWidth = lineWidth;
    context.strokeStyle = options.color;

    this.plot(options, 0, true);

    context.restore();
  }
function (options) {

    var
      context     = options.context,
      lineWidth   = options.lineWidth,
      shadowSize  = options.shadowSize,
      offset;

    context.save();
    context.lineJoin = 'round';

    if (shadowSize) {

      context.lineWidth = shadowSize / 2;
      offset = lineWidth / 2 + context.lineWidth / 2;
      
      // @TODO do this instead with a linear gradient
      context.strokeStyle = "rgba(0,0,0,0.1)";
      this.plot(options, offset + shadowSize / 2, false);

      context.strokeStyle = "rgba(0,0,0,0.2)";
      this.plot(options, offset, false);
    }

    context.lineWidth = lineWidth;
    context.strokeStyle = options.color;

    this.plot(options, 0, true);

    context.restore();
  }
function ( options ) { var context = options . context , lineWidth = options . lineWidth , shadowSize = options . shadowSize , offset ; context . save ( ) ; context . lineJoin = 'round' ; if ( shadowSize ) { context . lineWidth = shadowSize / 2 ; offset = lineWidth / 2 + context . lineWidth / 2 ; // @TODO do this instead with a linear gradient context . strokeStyle = "rgba(0,0,0,0.1)" ; this . plot ( options , offset + shadowSize / 2 , false ) ; context . strokeStyle = "rgba(0,0,0,0.2)" ; this . plot ( options , offset , false ) ; } context . lineWidth = lineWidth ; context . strokeStyle = options . color ; this . plot ( options , 0 , true ) ; context . restore ( ) ; }
Draws lines series in the canvas element.
@param {Object} options
Draws lines series in the canvas element .