g.raphael icon indicating copy to clipboard operation
g.raphael copied to clipboard

Donut Chart via insideRadius option for Pie Chart

Open blackwatertepes opened this issue 13 years ago • 2 comments

I've added an insideRadius option to g.pie.js, which enables the creation of donut charts. I've also included a few other nice additions...

  1. opts.insideRadius
  2. opts.opacity
  3. opts.sort

The extended repo can be found here: https://github.com/blackwatertepes/g.raphael

Note: insideRadius & opacity will not function properly with pie charts that contain only 1 value

blackwatertepes avatar Jun 17 '12 20:06 blackwatertepes

just saying : If you'll draw another small white pie manually (do r.piechart twice...) to create a hole effect (donut) there are no issues with 1 value...

vedmack avatar Jun 19 '12 12:06 vedmack

I've found several doughnut plugins or patches for graphael around, but it would be nice if one were included :)

singpolyma avatar Apr 17 '14 18:04 singpolyma