Flex LineChart with Multiple Data Providers

Posted by Jeremy Mitchell on Stack Overflow See other posts from Stack Overflow or by Jeremy Mitchell
Published on 2010-01-15T19:47:04Z Indexed on 2010/03/16 6:06 UTC
Read the original article Hit count: 262

Filed under:

Can I create a LineChart with multiple data providers? Since LineSeries has a dataprovider property, I'm assuming the answer is Yes.

I would expect something like this to work:

<LineChart>
    <series>
        <LineSeries dataprovider="{dp1}"/>
        <LineSeries dataprovider="{dp2}"/>
        <LineSeries dataprovider="{dp3}"/>
    </series>
</LineChart>

But, the LineChart only appears to work for me when the dataprovider is assigned to the LineChart.

Thanks.

© Stack Overflow or respective owner

Related posts about flex