--- In [email protected], "kamelkev" <[EMAIL PROTECTED]> wrote:
>
> I am having this same exact issue with PieCharts in Flex3.
> 
> I utilized the fillFunction callback for PieCharts in order to
customize the colors - the adobe 
> documentation even indicates that this is the appropriate use of
this callback... however once 
> you play with the coloring the legend doesn't seem to receive
notification that the original 
> coloring changed.
> 
> Do I need to invalidate something? I have tried calling all sorts of
random methods as the 
> documentation doesn't seem to address this specific issue.
> 

I finally figured it out. You use a change watcher on the variables
which define the stroke colors for the chart. When these change, the
changewatcher is fired. In the handler, you call
chart.legendDataChanged(); This will tell the legend to update it's
colors from the chart series. I don't think that you should have to do
that, but you do. I consider it either a design flaw, or a bug.

Reply via email to