css - Creating a heavily segmented ring/circle -

i need recreate above image using html, css, svg, or other similar means. it'll solely visual purposes, not needing type of actual functionality. preferably non-white parts transparent change background color , have other elements within center
the reason why cannot use transparent image because need able scale , possibly change color of bars little trouble
i know how approximately same thing using this css approach, require separate element every single segment not want.
the other option thought create doughnut graph in raphael.js whole lot pieces in it, seems lot of work simple outcome want
so before start long , complex process using 1 of methods mentioned, there simpler, more optimized way create effect desire? i'm not asking finished output, merely insight methods optimal create type of effect
edit
the optimal solution pure css approach not require separate element each segment. otherwise answers provided great solutions!
you stroke-dasharray:
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 100"> <circle cx="50" cy="50" r="30" stroke-dasharray="0.628" stroke-width="2" fill="none" stroke="black"/> </svg> example: http://jsfiddle.net/75wsm/
Comments
Post a Comment