Retrieving point data from a 2D line chart into Flash's main timeline
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Retrieving point data from a 2D line chart... Expand / Collapse
Author
Message
Posted 3/23/2007 6:42:25 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/27/2007 7:46:50 PM
Posts: 4, Visits: 17
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?


mrinterweb - at d0ma1n - mrinterweb d0t com
Post #615
Posted 3/24/2007 12:53:16 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 2 days ago @ 8:20:12 AM
Posts: 2,194, Visits: 521
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.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #618
Posted 3/26/2007 3:26:11 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/27/2007 7:46:50 PM
Posts: 4, Visits: 17
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).

mrinterweb - at d0ma1n - mrinterweb d0t com
Post #624
Posted 3/27/2007 9:11:22 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 2 days ago @ 8:20:12 AM
Posts: 2,194, Visits: 521
All the elements in charts are nested in multiple nested movie clips like _level0 > Chart1 > CMC  etc.

Thanks,
Pallav Nadhani
FusionCharts Team
Post #637
Posted 3/27/2007 5:19:47 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/27/2007 7:46:50 PM
Posts: 4, Visits: 17
I was able to get access to the data points I was after. I posted my code in the thread:

http://www.fusioncharts.com/forum/Topic244-28-1.aspx

Thank you for your help.


mrinterweb - at d0ma1n - mrinterweb d0t com
Post #646
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 3:08pm


Execution: 0.172.