Sign in to follow this  
mr_interweb

Retrieving point data from a 2D line chart into Flash's main timeline

Recommended Posts

I am trying to determine if it is possible to have Flash access information in the charts from the main timeline of Flash. For example, I am trying to establish where the relative _x, _y coordinates of a chart's datasets' points are in relation to the _root's x:y axis. I am also trying to get the data values from points on the line using Actionscript. Obviously, I have the data set information from the XML but in order for me to associate where on the graph a user is clicking I need to be able to access the data points' attributes.

 

 

 

I have access to the source code for Fusion Charts, but I am reluctant to change the base classes to get the functionality to access data point values from the charts. As far as I can tell, just about every method in the Fusion Charts is a private method, so even if I were to write a wrapper class with accessor methods, I am not sure if Actionscript would allow me to access those private methods and variables from a custom extended class. I am trying to avoid rewriting the source code, because my client would not be able to upgrade to a newer version of Fusion Charts. I hope that I am pursuing the wrong path and that there is some easier way to have Flash interact with data from the charts.

 

 

 

Please tell me if there is something in the API to allow for Flash to determine plotted information on a chart. If not, can you give me any advice as to how the source code could be modified to accommodate accessors to data points?

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

By editing it or getting the info back in your code, what exactly do you want to attain? If you can share your end goal, maybe we can help you with some other known methods.

Share this post


Link to post
Share on other sites

What I am trying to accomplish with Fusion Charts is a more interactive version of the charts. I am trying to find out where data points on a 2D line graph are in relation to _level0 so when a user clicks on a data point they can edit data associated with that point. I also was going to have one or more charts stacked vertically with a vertical bar that could be dragged across the chart(s). While the bar is dragged across the charts, the data values of the x-axis would update in text fields. Basically, my client wants the charts to have custom interactive functionality between an interface that I create and the charts. The only way I can think to implement this is to figure out how to let the _root of my flash application retrieve attribute data from the data points in the chart(s).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this