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

Numbers on the gauge scale are written off the canvas

Open ktecho opened this issue 6 years ago • 2 comments

Hi,

I don't know if a little more margin is needed or if I'm doing something wrong, but can't get this to print the whole "50" number inside the canvas:

https://www.ktecho.com/heart3/index.html

In some browsers like Firefox it's even worse. In Chrome/Chromium there is only a little bit of the number off-canvas, but in Firefox half the number is missing.

ktecho avatar Apr 04 '18 10:04 ktecho

Have your tried to reduce the radiusScale parameter just a little bit? That decrease the gauge radius, and the labels should follow.

kplindegaard avatar Apr 07 '18 09:04 kplindegaard

@kplindegaard Thanks a lot, I confused that parameter with another one. Anyways, maybe this should be fixed so even if you specify 100%, it fits in the canvas.

But for me it's enought. Thanks!

ktecho avatar Apr 07 '18 22:04 ktecho