I am trying to pre-open a segment on a pie immediately after its creation. Calling openSegment(index) explicitly does not seem to work (in fact it seems to leave the pie permanently unclickable).
It seems like calling methods on the d3pie object before it's finished loading causes problems. Putting the code inside the onload event handler in the config object seems to work though.
I am trying to pre-open a segment on a pie immediately after its creation. Calling
openSegment(index)
explicitly does not seem to work (in fact it seems to leave the pie permanently unclickable).To reproduce: Copy code example from http://d3pie.org/website/examples/openCloseSegment.html and add
pie.openSegment(2);
aftervar pie=new d3pie({...});