PDA

View Full Version : Example: Charts and Graphs in AMS


TJS
08-09-2006, 03:58 PM
So I'm working on an app that will graph some performance metrics for project status reports. I am making good progress on a framework that is 100% AMS script and will dynamically generate line graphs based on user entered values.

In the meantime, I found this free tool (http://www.maani.us/xml_charts/index.php?menu=Gallery) that has been developed in flash and can easily be integrated into AMS

This thing blows the doors off my version in terms of form and function!

Attached is a sample integration. In the DOCS folder, you'll find 3 files and one library folder that are required for the tool to function:
1. charts.swf (this is the core Flash file)
2. sample.html (this is just an html page used to wrap the swf to help with presentation in the Web Object)
3. sample.xml (this is the data file that drives the presentation elements of the chart i.e. data points, colors, fonts, transitions, etc.)

Beyond this, the only other skills used are related to Input Object, Web Object, and simple XML manipulation.

Enter numeric values into the input boxes and click refresh to see the chart update.

P.S. I still plan to finish my AMS framework and will post as I think there is some good stuff in there for dynamically drawing based on user inputs.

Friethoe
09-14-2006, 06:21 AM
Wow TJS, thanks for sharing this marvelous tool (and example) with us :yes

I needed to create graphs within AMS projects but didn't know how to do this.
The progress bar helped me a bit, but this is IT!!!

Once again, thanks for sharing!!

Eric

TJS
09-14-2006, 10:13 AM
I'm glad someone found this as cool as I did!

Since posting this, I have tried integrating the swf directly into a Flash object instead of wrapping it in html and putting it in a Web object. The presentation is much nicer visually and makes it easier to change the settings of the swf on the fly. Instead of parsing, editing and reloading the html, you just use the Flash.SetFlashVariable() action as needed.

Friethoe
09-15-2006, 03:57 AM
....Since posting this, I have tried integrating the swf directly into a Flash object instead of wrapping it in html and putting it in a Web object....

THAT would be even better, but to be honest..... I wouldn't know how to do that:rolleyes

TJS, would you like to show me how that could be done?!

(This is such a nice tool, it amazes me that nobody else seems to like it as we do?!)

Thanks,
Eric

TJS
09-15-2006, 08:46 AM
Sure. Attached is the same example with the web object replace by a Flash object. There is a new global function that when called, reloads the swf and passes it two variables so it knows where to find its library and xml data.

Friethoe
09-15-2006, 09:02 AM
TJS, you rock!!! :yes

Thank you very much, this is awesome :) :yes

Everyone should use this!! It's amazing what you can do with this!

Your example is G R E A T !

Thanks,

Kind regards,
Eric

Dermot
09-15-2006, 03:12 PM
That is fantastic! That has to be the best graphing solution for AMS.:yes

Thanks TJS

Intrigued
09-15-2006, 03:37 PM
From what I have seen it looks, works good.

Nice job TJS.

johnraus
09-19-2006, 05:46 PM
:cool very COOoooollllll :D :yes

gdtu
01-23-2007, 10:56 AM
Why I cannot load the attached files

TJS
01-23-2007, 12:28 PM
Do you have AMS installed? If you do not own a copy, there is a 30 trial available at the Indigorose website.