Flex Dynamic Chart Example
Line Break
Author: Arjan (47 Articles) - Author Website
Arjan is a SAP Consultant specialized in ABAP and Front End development techniques like Web Dynpro, Adobe Interactive Forms, Flex and AIR. In his free time he likes to create examples for Flex-Blog and other applications using Flex, AIR and PHP. Other hobbies are movies and music. He is also the co-owner of Flex-Blog.com.
Using charts in Flex is pretty straightforward and simple. But what if the number of chart items you’re about to show in your application is unknown (can be 1, can be 10, can be 15..) and you have to add them dynamically? I faced such a problem during a project I was working on, here’s how i solved it.
Using arrays as objects in my dataProvider (of type ArrayCollection), I am able to dynamically add and remove key / value pairs to or from that array.
Just look at the source code of the sample application to see how you can create a Dynamic Chart in Flex.
Related posts:
Comments
3 Responses to “Flex Dynamic Chart Example”




Thanks Arjan, this was really helpful
!
HI
form above , from where i can download that source code.
Thanks
Narendra
Hi Nerendra,
Please visit the link “sample application” and right click on the example -> View Source.
Regards,
Roelof