On 3/27/18, 11:27 AM, "[email protected] on behalf of OmPrakash Muppirala"
<[email protected] on behalf of [email protected]> wrote:
>>
>> <ns2:seriesList>
>> <ns2:SeriesList>
>> <ns2:Series name="Sales" type="bar" data="{this.salesData}" />
>> <ns2:Series name="Profit" type="line" data="{this.profitData}" />
>> </ns2:SeriesList>
>> </ns2:seriesList>
>>
>> What is SeriesList? When would someone need to replace SeriesList with
>>an
>> alternative class to wrap the series? You might be able to drop that as
>> well by making SeriesList a bead.
>>
>
>SeriesList is an object that composes a series array. It will set change
>listeners on every Series object in the series array. When any of the
>change listeners fire, it will dispatch an event so as to apply the change
>to the chart and cause a re-render.
>
>I am not sure if I want to make that a bead. I don't see a reason to
>alter
>or re-implement the SeriesList behavior.
Up to you. In other places where a dataProvider is assigned an Array, it
might get wrapped internally by a Collection. If every user is just going
to blindly wrap the Series array in a SeriesList, you can do the wrapping
internally and thus save some more MXML tags. The reason I suggested
making it a bead is so that folks can use a known pattern to override
SeriesList should they need to.
-Alex
>