Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Drawing horizontal lines

Open dany28 opened this issue 11 years ago • 1 comments

Small issue (Chart.Core.js): started at line 1630:

if(drawHorizontalLine){
    ctx.moveTo(xStart, linePositionY);
    ctx.lineTo(this.width, linePositionY);
    ctx.stroke();
    ctx.closePath();
}

is not using right padding, better:

if(drawHorizontalLine){
    ctx.moveTo(xStart, linePositionY);
    ctx.lineTo(this.width-this.xScalePaddingRight, linePositionY);
    ctx.stroke();
    ctx.closePath();
}

i started to write bar+line chart with two y scales and this issue is neccessary to be fixed

dany28 avatar Jan 19 '15 02:01 dany28

Duplicate of #511

etimberg avatar Apr 02 '16 14:04 etimberg