bernii / gauge.js

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

Unnecessary Extra space at top of guage #179

Open visiara opened 6 years ago

visiara commented 6 years ago

Please how can i remove Unnecessary space at the top of guage? it has about 200px of white space at th etop that i dont want.. meme

Knight2601 commented 6 years ago

Could you check and screengrab the canvas size that is being rendered - add a style: border: 1px solid black; to the canvas element. Usually the canvas renders the gauge at an approximate 4:3 scale so its dependant on width more than height.

Also could you show me the markup you’re rendering out into?

Thanks

Andy

From: visiara [mailto:notifications@github.com] Sent: Friday, April 20, 2018 8:56 AM To: bernii/gauge.js gauge.js@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [bernii/gauge.js] Unnecessary Extra space at top of guage (#179)

Please how can i remove Unnecessary space at the top of guage? it has about 200px of white space at th etop that i dont want.. [meme]https://user-images.githubusercontent.com/38553282/39037478-8b940890-4478-11e8-8fcb-09af9325f7cc.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/bernii/gauge.js/issues/179, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AET2qorR9HGy75vulMUEaGuAsmgPC1MNks5tqZRzgaJpZM4TdBeG.

visiara commented 6 years ago

wow! i am amazed at the response speed...i appreciate this...but i have solved it, just played around with the lineWidth and radiusScale.. still shocked at the speed of response...thumbs up...

Knight2601 commented 6 years ago

☺ aim to please ☺ (Friday is a good day to ask questions)

Andy From: visiara [mailto:notifications@github.com] Sent: Friday, April 20, 2018 9:02 PM To: bernii/gauge.js gauge.js@noreply.github.com Cc: Knight, Andrew Andrew.Knight@informa.com; Comment comment@noreply.github.com Subject: Re: [bernii/gauge.js] Unnecessary Extra space at top of guage (#179)

wow! i am amazed at the response speed...i appreciate this...but i have solved it, just played around with the lineWidth and radiusScale.. still shocked at the speed of response...thumbs up...

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/bernii/gauge.js/issues/179#issuecomment-383206575, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AET2quxbb63LFc0NLuRcocpbAM3Suc6Nks5tqj6egaJpZM4TdBeG.