How to create circular progress(pie chart) like indicator

后端 未结 6 1640
情话喂你
情话喂你 2020-12-04 09:09

I have to show progress graphs exactly in following way where percentage would be in center of circular graph
\"cir

6条回答
  •  余生分开走
    2020-12-04 09:53

    You can use CSS sprites (google) for this purpose, if you want to show multiples of 10 (0%, 10%, 20% etc). I guess you need to be a graphics guru to create the sprite..

    The sprite is one image containing more than one image. For your purpose, you can create an image, say 16x160px. Imagine that this image is divided into ten 16x16px "slices" and draw the corresponding percentage on that slice. You can then use CSS and JavaScript to show one "frame" from this sprite.

提交回复
热议问题