123
user profile image

Comments

  1. Hello @ludviglindblom,

    Above Canvas pie chart with CSS bar chart fallback is rich in graphic and super cool.

    I have integrate above Canvas pie chart with CSS bar chart fallback to my project. Now, I have requirement that I need to display total count in between circle. How can I achieve this?

    Thanks, Krunal

  2. Ok, I have placed it myself. Please find below code:

    ctx.font = "15px Arial"; ctx.fillStyle = "#000"; ctx.textAlign = "center"; ctx.fillText("Total", canvasWidth / 2, (canvasHeight / 2) - 20); ctx.font = "50px Arial"; ctx.fillStyle = "#000"; ctx.textAlign = "center"; ctx.fillText(Total, canvasWidth / 2, (canvasHeight / 2) + 30);

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...