Flash Graph – Free Script

// May 27th, 2009 // Flash - AS3, Scripts

OK! I made a new sript and I am sure you will love this one. It is a flash Graph script. You can use it to display graphs on you website wery easy with no coding necesary. Just modify the XML file and you are ready to go.

You can ad as many values as you want, as long as you follow the same XML structure.

<day>
<label>Day 1</label>
<value>768</value>
</day>

You can ad a label and a value.

Very important is to add the max value possible. This is to put the graph in an interval on the screen. For example, if your maximum value for one day is 996, you can put the <max> value to 1000.

Also, you can set in the XML file if you want the dots to be shown on the values or not and also if you want the graph to have a fill under it.

How to include the graph

I use swfobject to include the graph. THis is to use flashvars for the path to the XML file. I have included the HTML file so you can see how everything is done. All you have to modify is the flashvars.xmlPath to point to the actual path of your xmlFile.




Example
Below is an example. This is the blue one.

Color Variations

In the zipfile I included more color variation: red, purple, blue, green and lime.

Upload Zip

Leave a Reply