How about setting up an updateComplete listener on a chart which will call a 
function that gets all series items (by parsing chart.series array) and 
compares their values against your colour definition.


--- In [email protected], "Monette" <monett...@...> wrote:
>
> What I am trying to do is change the color of the datapoint based on a value. 
>  This works fine when I hard code a series index.  When defining the series I 
> use: series.setStyle("itemRenderer", new ClassFactory(AlertColorRenderer));
> to define the color of the datapoints.  However, since the series count can 
> vary, I need to specify what the current series is in order to apply the 
> colors to the correct datapoints.  I am trying to figure out how to access 
> the current series from within the class.  Any ideas?
> Thanks.
> MM
> --- In [email protected], "pullzmag" <deegregg_mlist@> wrote:
> >
> > Do you want to retrieve this id based on the value of that lineseriesitem? 
> > If so, then I think this is not a good approach since sometimes you may 
> > have two or more lineseriesitems with the same value and therefore you will 
> > not be able to get the one you are looking for.
> > 
> > --- In [email protected], "Monette" <monettemm@> wrote:
> > >
> > > I have the value of the lineseriesitem, it was passed to a class. I would 
> > > like to retrieve the lineseries id or index that the item came from?  Is 
> > > it possible to get that info from the lineseriesitem?
> > > Thanks.
> > > MM
> > >
> >
>


Reply via email to