I got this off the blogs but I can't seem to find the right TIME/TRIGGER in 
which to place this code.  The key appears to be the one-liner about the height.

If you get this working can you send me your solution?  And I'll do the same.

--------------
FROM: http://blogs.adobe.com/flexdoc/charts/

The final example is a little different in that it applies the color to a 
single item in the series and not the entire series. I thought it was 
interesting, so I figure I'd share it.

Instead of applying a style to the series, you set the fill property on the 
ColumnSeriesItem:

    var c:SolidColor = new SolidColor(cp.selectedColor);                        
        
    csi.fill = c;

In addition, to get it to work requires a little workaround: You have to 
trigger a call to the series' updateDisplayList(). To do that, you just set a 
property on the itemRenderer, like this:

    csi.itemRenderer.height = csi.itemRenderer.height;           
-------------

--- In [email protected], Sam Lai <samuel....@...> wrote:
>
> Hi everyone,
> 
> I've got a column chart that displays values for each day for say a
> month. When I click on a particular bar, I want to fade out all the
> days except those matching the one clicked, e.g. if I clicked on a bar
> and that bar represented a Monday, I want to fade out all bars except
> if they are for a Monday as well (hence there would likely be four
> bars left in a month's worth of data).
> 
> I can get all that working, by changing the alpha value on the
> ColumnSeriesItem.fill.alpha or ChartItem.itemRenderer.alpha.
> 
> Problem is, I want a fade effect doing it so it fades out, rather than
> just immediately change. None of the mx.effects work on chart items
> (chart items are not UIComponents), and the mx.charts.effects effects
> only operate on an entire series and not individual ChartItems (and
> there isn't one for fading anyway).
> 
> Has/does anyone know how to do something like this, or better yet, got
> an example? I tried looking at the source, but it's all focused
> towards effects for entire series, not individual ChartItems.
> 
> Thanks,
> 
> Sam
>


Reply via email to