bernii / gauge.js

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

Making canvas smaller? #199

Closed RotateAt60MPH closed 5 years ago

RotateAt60MPH commented 5 years ago

Hi there! Really like the simplicity of this control. Nice.

Is there anyway to change how much of the canvas the control is drawn in? I need a much smaller canvas but every time I try and make the canvas element smaller, the gauge only takes up the bottom half with unavoidable dead space. Thanks!

RotateAt60MPH commented 5 years ago

Figured it out...

Use the canvas style height and width in combination with the lineWidth and radiusScale options (as another question referred to) and I was able to get exactly what I needed.

Thanks again,