bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

Numbers on the gauge scale are written off the canvas #178

Closed ktecho closed 11 months ago

ktecho commented 6 years ago

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.

kplindegaard commented 6 years ago

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

ktecho commented 6 years ago

@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!