d3pie icon indicating copy to clipboard operation
d3pie copied to clipboard

Uncaught ReferenceError: pie is not defined

Open patil-nileshb opened this issue 8 years ago • 2 comments

https://github.com/benkeen/d3pie/blob/24b488a4f44226c407186c007365ab775f92a426/d3pie/d3pie.js#L1512 throws error Uncaught ReferenceError: pie is not defined at Object.maybeCloseOpenSegment (d3pie.js:1512) at Object.openSegment (d3pie.js:1490) at SVGGElement. (d3pie.js:1405) at SVGGElement. (d3.min.js:2)

patil-nileshb avatar Oct 10 '17 19:10 patil-nileshb

it still give error. PS: I use unminified version.

d3.v4.min.js:2 Uncaught Error at d3.v4.min.js:2 at Et.ease (d3.v4.min.js:2) at Object.openSegment (d3pie.min.js:1496) at SVGGElement.<anonymous> (d3pie.min.js:1408) at SVGGElement.<anonymous> (d3.v4.min.js:2)

which points to this line .ease(segments.effectMap[pie.options.effects.pullOutSegmentOnClick.effect])

tonyfumonkey avatar Nov 30 '17 05:11 tonyfumonkey

it works better if you change pie with 'a'

maybeCloseOpenSegment: function () { d3.selectAll("." + a.cssPrefix + "expanded").size() > 0 && k.closeSegment(a, d3.select("." + a.cssPrefix + "expanded").node()) },

NB: it seems to me that examples works fine because the target DOM element is also name 'pie'

panda-blue avatar Apr 10 '19 12:04 panda-blue