( x, y, lineWidth = 2 )
| 16 | } |
| 17 | |
| 18 | drawAxes( x, y, lineWidth = 2 ){ |
| 19 | this.context.strokeStyle = "#88A"; |
| 20 | this.context.lineWidth = lineWidth; |
| 21 | |
| 22 | // yAxis |
| 23 | this.context.beginPath(); |
| 24 | this.context.moveTo( x, 0 ); |
| 25 | this.context.lineTo( x, this.canvas.height ); |
| 26 | |
| 27 | // xAxis |
| 28 | this.context.moveTo( 0, y ); |
| 29 | this.context.lineTo( this.canvas.width, y ); |
| 30 | |
| 31 | // Draw the Path |
| 32 | this.context.stroke(); |
| 33 | } |
| 34 | |
| 35 | drawLightGrid( yAxis, pos, extent ){ |
| 36 | if ( extent < 5 ) return; |