Flash dynamic pieChart
// November 28th, 2008 // Programming, Scripts, Uncategorized
As I mentioned…I have a litle new script for you. The script is a dynamic, XML driven, piechart made in Flash. It is free to download by anyone who is interested!
As I mentioned, the chart is driven by a smal XML file…so no ActionScript coding is necesary. just embend the SWF file in you page. before I exmplain further how to make changes to the chart, lets first see it in action:
Hope you like it. now, let get down to the technical part.
After downloading, you will see two files: the SWF file and the XML file. to make any changes to the chart, just open the XML file with any text editor. The structure of the XML file must be kept as it is, but there can be any number of items added (but I don’t recommend more than 50). I strongly recommend makeing a back-up of this original file just in case your XML file does not work. But, as long as you keep everything intact it should work just fine.
XML file structure:
<data>
<chart>
<value>3</value>
<label>Our Compnay</label>
<color>0xFF0000</color>
</chart>
</data>For every new value you want to appear in the piechart, you must paste what is between <chart> </chart>
Every new item can have a label. This is optional but is recommended if you want users to know what the piece of the chart means.
The color is necesary. It must be entered as a RGB value with “0x” in front. Example: 0xFF0000 = red
About the terms…you are free to use the file on your website and distribute it freely on the internet as long as the copyright remains intact. Youa re not allowed to sell this file.
Also, please note this file need Flash Player 9 or above to run.
P.S. don’t forget to subscribe to our newsletter
Leave a Reply
You must be logged in to post a comment.



