title: Rotate html5 canvas text from its center point
body: <p>I want to rotate the HTML5 canvas text with dynamic X, Y value from it's center position. I used the below code as mentioned in the stackoverflow link <a href="https://stackoverflow.com/questions/25172501/html5-rotate-text-around-its-centre-point">HTML5 rotate text around it&#39;s centre point</a> . but text is always rotating from start point. I need from center point rotation. This is my code.         </p>
  
  <pre><code> this.ctx.textAlign = "center";
   this.ctx.textBaseline = "middle";
   this.ctx.translate(options.x , options.y);
   this.ctx.rotate(options.labelRotation * Math.PI / 180);
   this.ctx.fillText(label, 0, 0);
  </code></pre>
  
  <p>Anyone let me know how to rotate the text from center point of the text.</p>
  
  <p>Thanks,
  Bharathiraja.</p>