bernii / gauge.js

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

White Outline on Donuts #14

Closed atajsic closed 3 years ago

atajsic commented 11 years ago

On the background arc on the donut, there is a white border that is apparent.

Example: http://i.minus.com/i8TxS4zFkaPRN.png

by multiplying @lineWidth by 0.8 on the following line, the issue is fixed.

https://github.com/bernii/gauge.js/blob/gh-pages/dist/gauge.coffee#L358

@ctx.lineWidth = @lineWidth * 0.8

Fixed Example: http://i1.minus.com/iZdEDhXnpvuTM.png

EDIT: As you may have noticed- I changed the ends to be butt- perhaps add an option to choose either round or butt for the donut?

jacksoncapper commented 10 years ago

You're awesome!