I have 8 paths generated thusly:
for (i = 0 ; i<8; i++){
slices[i] = card.path("M320 120 L320 215").attr({"stroke" : "#00A5Df",
"stroke-width" : 10});
}
I want them to rotate from origin of M320 120(start of the line) in a clockwise direction to produce a 'pie' effect:
for (i = 0 ; i<8; i++){
slices[i].animate({transform :"r"+45*(i+1)+""},(200*i));
}
Instead the origin used is in the centre of the line. I've tried formatting the string like
"r45 cx320 cy120"
and other combinations but the values are always ignored.
edit: here is a fiddle which more clearly highlights my problem: http://jsfiddle.net/vMRdj/