Comments (1)
More information about your code would be welcome.
Please instatiate your pie like this:
<div id="myDivId">
var containerId = "myDivId"; // note the missing **hashtag**
var configObject = {
...
}
window.pie = new d3pie(containerId, configObject);
if you are passing a jquery object, pass the dom element instead e.g.:
var jqContainer = $('#div');
var domContainer = $('#div')[0];
var domContainerClassic = document.getElementById('myDivId');
If you are using JQuery you should at the very least get familiar with what it does for you. The error message could not have been more clear in this case.
from d3pie.
Related Issues (20)
- Cannot read property 'hs' of undefined
- Cannot read property 'hs' of undefined
- size.pieOuterRadius does not respond as in examples
- sector doesnt close if new sector is selected
- Issues with Bootstrap 3 HOT 1
- Pie Labels Overlap HOT 2
- How to get the effect as mentioned in the image and what properties i need to change to get the effect when i click on segment.
- Label lines overlap when there are lots of small segments clustered at the bottom.
- Changeable text color in pie
- How to use it in react?
- Font-family is set to verdana in style attribute HOT 1
- Percentage values not staying equal distant from the chart
- Percentage values in equal distance from donut chart
- Why sometimes the d3pie does not draw sectors?
- I want to have external legend, how to achieve that? HOT 1
- how can I change the colour of the percentage label inside the pie segment?
- pie parameter missing HOT 1
- Site is down HOT 1
- d3pie integration with formtools or external php
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3pie.