Chart Components in Flash MX 2004

I want to use the chart components like line chart etc. in flash MX 2004.The problem is i am not able pass data to the charts dynamically.Can someone help me with that ? ;(