You need to add a PieSeries to the PieChart.series array, and set the dataProvider on that.
We use Pies dynamically through AS--it works great. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -----Original Message----- From: fflexhelp <[EMAIL PROTECTED]> Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Creating Pie chart Dynamically in Flex 3 Date: Fri, 09 May 2008 14:49:32 -0000 Hi I am trying to create pie charts dynamically. Var myPieChart:Piechart; in the init() { myPieChart=new PieChart(); myPieChart. it does not give the dataprovider for the pie chart.when you try creating the same chart using mxml tags it allows you to set dataProvider. } can someone please help me on this?