When I click on one of the bars in my column chart I want to show the selection of that bar by fading the rest.

 

I create the items with a fill of linear gradient and an alpha of 50.  So when the user clicks I want to set that bars alpha to 100.

 

When the bar is clicked I use the mouseClickedData.

 

I do the following

 

I have tried just about every invalidation I can think of after setting the alpha.

 

function chartClicked( event )

{

    var fill = event.hitData.element.getStyle("fill");

    for ( var i=0;i<fill.entries.length;i++)

    {

       fill.entries[i].alpha=100;

    }

    event.hitData.element.invalidateStyle(“fill);

 

.

.

.

}

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to