I am a newcomer to D3 and I'm facing a tough challenge with the error message "Uncaught TypeError: Cannot read property 'arc' of undefined". The puzzling part is that this error is not consistent, making it difficult for me to understand its root cause.
The specific line of code causing the issue is
d3.arc().innerRadius(this.prop.innerRadius).outerRadius(this.prop.outerRadius)
used for creating a donut chart.
In my attempt to address this problem, I referred to this documentation found at DOC to set up D3 with requireJS.
Below are the details of my current configuration:
• Backbone JS (v1.3.3)
• Require JS (v2.3.3)
• D3 v4.4.0 & experimented with v5.7.0
• Use of the donut chart within a Cordova Android app
• Android version-6.1.0
• Cordova-7.1.2