Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glow() on piechart results piechart set instead of glow set #161

Open
valioDOTch opened this issue Jul 4, 2012 · 1 comment
Open

glow() on piechart results piechart set instead of glow set #161

valioDOTch opened this issue Jul 4, 2012 · 1 comment
Assignees

Comments

@valioDOTch
Copy link

Seems as if a glow() command on a pie returns the pie itself, instead of the glow set.

var r = Raphael(10, 10, 640, 480);

var circle=r.circle(40,40,25);
circle.attr({fill:"red"});
circle.hover(circle_in,circle_out)
var cglow=null;

function circle_in(){
    if (cglow==null){
        cglow=circle.glow(); 
    }
}

function circle_out(){
    if (cglow!=null){
        cglow.remove();
        cglow=null; 
    }
}

var pie = r.piechart(150, 150, 50, [30, 20, 30, 20]);
pie.hover(pie_in,pie_out);
var pglow=null;

function pie_in(){
    if (pglow==null){
        pglow=pie.glow(); 
    }
}

function pie_out(){
    if (pglow!=null){
        pglow.remove(); 
        pglow=null;
    }
}

Thus it seems to apply not feasible to apply glow on piecharts at the moment.

@valioDOTch
Copy link
Author

or see it on http://jsfiddle.net/W4ZUv/

@ghost ghost assigned karolk Aug 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants