d3pie icon indicating copy to clipboard operation
d3pie copied to clipboard

Update d3pie.js

Open sebinkuriakose opened this issue 7 years ago • 6 comments

Fixing 'ReferenceError: pie is not defined'

sebinkuriakose avatar Apr 06 '17 14:04 sebinkuriakose

Hi @sebinkuriakose, thanks for the PR! Under what circumstances does that error occur? Could you provide a few more details on how to reproduce?

benkeen avatar Apr 08 '17 08:04 benkeen

Thanks for the awesome work.

I faced this with following stack trace:

Uncaught ReferenceError: pie is not defined
    at Object.maybeCloseOpenSegment (core-libs.min-a77ef77….js:8)
    at Object.openSegment (core-libs.min-a77ef77….js:8)
    at SVGGElement.<anonymous> (core-libs.min-a77ef77….js:8)
    at SVGGElement.<anonymous> (d3.min.js:2)

To reproduce, click on a segment of a piechart. (Also reproducible on website charts as well)

kashiif avatar May 17 '17 09:05 kashiif

Hello,

I am facing the same issue. I have several charts shown in the same page so I can't name them all "pie".

When will this be available in master version ?

Spekou avatar Jul 10 '17 09:07 Spekou

Facing the same issue. It can be reproduced when you are trying to use the d3pie object on a div with another ID than "pie":

        var pie = new d3pie("mypie", {
		header: {
			title: {
				text: "A Very Simple Pie",
				fontSize: 30
			}
		},
		data: {
			content: [
				{ label: "JavaScript", value: 264131 },
				{ label: "Ruby", value: 218812 },
				{ label: "Java", value: 157618}
			]
		}
	});

irimiab avatar Jul 13 '17 14:07 irimiab

Same problem, any news when the PR will be merged ?

CDluznie avatar Jul 20 '17 12:07 CDluznie

👍🏾

gabemeola avatar Aug 08 '17 22:08 gabemeola