A month ago, Boyd asked: > Anyone know where to find algorythms or code scraps that would let me > draw pie graphs using dynamic data? I am using the older Flash 6.
And, also a month ago, Eric Dolecki asked: > Q: Has anyone seen a dynamic pie chart component that allows one to add > slices with code, remove them with code, and also allows one to click and > drag edges of slices around to allow a user to manually change the % data > for slices? Then, nearly a month ago, Millie Niss asked: > Are there good free charting (I need customizable bar graphs and line > graphs of small data sets) components or class libraries? ... > I would prefer not to have to learn an entire framework just to get > the charts, and I definitely don't want something that weights down > the published swfs. Sorry for the late reply. dcflash is an open source ActionScript 2 library with a main focus on charting (also support classes for storing time series data, statistics - especially for financial charting, back-end connections, etc.). Version 0.1.0 was release a month ago. Some chart styles are still to be brought in, but the pie chart class is quite solid and quite advanced. You can see my pie chart demo here: http://dcook.org/work/charts/pie_chart_demo.html To Boyd: all classes in the library work with Flash 6 (the above demo is Flash 7 solely because of using Aswing for the UI). To Eric: you can add/remove slices easily enough (modify the data array and redraw). Support for mouse actions is not in yet, sorry. (Actually, I've never seen an interactive pie chart like you describe - are you free to describe the application?) To Millie: for simple bar charts look in the Line/Shapes classes for the drawVerticalColumns(); for line charts look at drawLinesToRight() and drawMountain(). More complex charts, will be in the 0.3.0 release, a month or two away. Some other examples of what the library can do, or will do Real Soon Now: http://dcook.org/work/charts/ The library is hosted on sourceforge, here: http://dcflash.sf.net/ Please join the users or announce mailing lists if interested! Darren _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com