benkeen / d3pie

A configurable pie chart lib and generator built on d3.js
MIT License
370 stars 203 forks source link

Pie segment click effect doesn't work if name of pie is not "pie" #133

Open loker0 opened 7 years ago

loker0 commented 7 years ago

If I name my pie something other than "pie", I get the following error when clicking on it (and the click effect doesn't work):

d3pie.min.js:8 Uncaught ReferenceError: pie is not defined at Object.maybeCloseOpenSegment (d3pie.min.js:8) at Object.openSegment (d3pie.min.js:8) at SVGGElement. (d3pie.min.js:8) at SVGGElement. (d3.min.js:3)

Am I doing something wrong?

maeeast commented 7 years ago

Does your call look something like this?

myPieName = new d3pie(

If you paste your call it would be easier to help you.