rightText ================== .. js:function:: Plot.rightText(ctx, x, y, txt) ソース ^^^^^^ .. code-block:: js rightText(ctx, x, y, txt) { var tm = ctx.measureText(txt); ctx.strokeStyle = "rgba(0,0,0,255)"; ctx.fillStyle = "rgba(0,0,0,255)"; ctx.strokeText(txt, Math.max(0, this.pixX(x) - this.margin - tm.width), this.pixY(y) + 8); }