naikus / svg-gauge

Minimalistic, animated SVG gauge. Zero dependencies
MIT License
319 stars 74 forks source link

- #24

Closed mbusson closed 6 years ago

mbusson commented 6 years ago

-

naikus commented 6 years ago

Hi @mbusson I'm caught up in some work and will answer your question in detail soon. Meanwhile its not a circle but an svg path. A function called pathString on line 219 draws the gauge value (the "circle") actually, an arc. See this page of how arcs work. https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths

Thanks, naikus

mbusson commented 6 years ago

Hey Naikus, thank you so much for your answer!

You've given me plenty to work with already, I remember that "d" attribute and it took me some time to ponder whether or not this was an important bit haha

I think I've taken enough of your time, I'll look into it again and in case I end up making something usable out of my fork I'll send you the results :) No need to spend too much time chaperoning me, I'll read the appropriate documentation and try to get my head inside your programming ;)

Thanks again! Max