benkeen / d3pie

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

Uncaught TypeError: d3.arc is not a function #125

Closed rameshlekkala closed 7 years ago

rameshlekkala commented 7 years ago

Dear Team I am trying to generate pie chat. Initially it is working fine.

now in JS console "Uncaught TypeError: d3.arc is not a function" showing this error, and not displaying pie chart.

Please help me. If you want to talk to me please email me : ramesh.lekkala007@gmail.com

rameshlekkala commented 7 years ago

Apologies, internal problem. Able to fix it.

Thanks

davidpenso commented 7 years ago

Hey @rameshlekkala do you remember how you solved this? Having the same problem

rameshlekkala commented 7 years ago

@davidpenso I am trying to incorporate it in to OTUI frame work. While reloading the page it is not loading that component. I written it in otui.ready() function then it worked. I think now you can written your code in JQuery ready() function then it will work I think.

jochop commented 6 years ago

HAving the same issue. Please help

jochop commented 6 years ago

I have included the code in document.ready still not working, Just showing the title and console showing error : d3.arc is not a function

CriMenghini commented 6 years ago

Any news?

niol commented 5 years ago

This usually happen because d3.arc is for d3 v4+ and the code is using d3 v3.

SPH73 commented 4 years ago

I'm using v4 and still have the problem - can anyone help?

SPH73 commented 4 years ago

Apologies, internal problem. Able to fix it.

Thanks

can you tell me how you fixed it?

rameshlekkala commented 4 years ago

Initialization of data problem.

On Tue, Jan 7, 2020 at 8:53 AM SPH73 notifications@github.com wrote:

Apologies, internal problem. Able to fix it.

Thanks

can you tell me how you fixed it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/benkeen/d3pie/issues/125?email_source=notifications&email_token=AGFNXQ4ACVRQZWP63C6ODYDQ4QKENA5CNFSM4DET2G32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIHZL2Y#issuecomment-571446763, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFNXQ6PTAQ475JYBUZ6SQLQ4QKENANCNFSM4DET2G3Q .

-- Best Regards Ramesh Chowdary L

SPH73 commented 4 years ago

Initialization of data problem. On Tue, Jan 7, 2020 at 8:53 AM SPH73 @.***> wrote: Apologies, internal problem. Able to fix it. Thanks can you tell me how you fixed it? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#125?email_source=notifications&email_token=AGFNXQ4ACVRQZWP63C6ODYDQ4QKENA5CNFSM4DET2G32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIHZL2Y#issuecomment-571446763>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFNXQ6PTAQ475JYBUZ6SQLQ4QKENANCNFSM4DET2G3Q . -- Best Regards Ramesh Chowdary L

Thanks for a quick reply - i'm using external data so I'll extract a small set to an array and see if it makes a difference.

swatiSahu07 commented 4 years ago

I'm facing the same problem, refer this example hope it will help you https://embed.plnkr.co/plunk/aE6kcX

friek108 commented 3 years ago

It may be that you're using version 3 of d3. If so, you need to use version 0.1.9 as version 0.2 doesn't appear to be compatible with d3 v3. https://github.com/benkeen/d3pie/commit/a8295232451dea336cb860c19348c28d4a863bb0