DmitryBaranovskiy / g.raphael

Charts for Raphaël
http://g.raphaeljs.com/
1.51k stars 436 forks source link

bug fixed in "g.pie.js" (0.5) when moving legend to north or south #146

Open hiworld75018 opened 12 years ago

hiworld75018 commented 12 years ago

When moving the legend to north or south, it is not centered with the graph.

Changing: north: [-r - bb.width / 2, -r - bb.height - 10], south: [-r - bb.width / 2, r * 1.2] To north: [-(r * 1.2) - bb.width / 2, -r - bb.height - 10], south: [-(r * 1.2) - bb.width / 2, r * 1.2] Will make it.