lib/widget/charts/line.js
function drawLine(values, style, minY) {
    style = style || {}
    var color = self.options.style.line
    c.strokeStyle = style.line || color

    c.moveTo(0, 0)
    c.beginPath();
    c.lineTo(getXPixel(0), getYPixel(values[0], minY));

    for(var k = 1; k < values.length; k++) {
      c.lineTo(getXPixel(k), getYPixel(values[k], minY));
    }

    c.stroke();
  }
function drawLine(values, style, minY) {
    style = style || {}
    var color = self.options.style.line
    c.strokeStyle = style.line || color

    c.moveTo(0, 0)
    c.beginPath();
    c.lineTo(getXPixel(0), getYPixel(values[0], minY));

    for(var k = 1; k < values.length; k++) {
      c.lineTo(getXPixel(k), getYPixel(values[k], minY));
    }

    c.stroke();
  }
function drawLine ( values , style , minY ) { style = style || { } var color = self . options . style . line c . strokeStyle = style . line || color c . moveTo ( 0 , 0 ) c . beginPath ( ) ; c . lineTo ( getXPixel ( 0 ) , getYPixel ( values [ 0 ] , minY ) ) ; for ( var k = 1 ; k < values . length ; k ++ ) { c . lineTo ( getXPixel ( k ) , getYPixel ( values [ k ] , minY ) ) ; } c . stroke ( ) ; }
Draw the line graph
Draw the line graph