Get the chart's _x position with ActionScript
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Get the chart's _x position with ActionScript... Expand / Collapse
Author
Message
Posted 7/13/2007 5:07:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/18/2007 4:10:57 AM
Posts: 1, Visits: 5
Hi.



How can I dynamically figure out the X position of the canvas (only the part with the graph)? I've added a layer on top of the chart object with ActionScript, and I need to know the exact size of the gap between the border of the flash movie and the canvas. I started with a fixed value, but sometimes the Y axis value labels size change, and thus cause the canvas to move a little.

Another way for me to solve this would be to have the ability to prevent that gap from being resized. Is there a way to do that?

Thanks.

Sebastien
Post #1611
Posted 7/16/2007 11:23:57 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 9:07:24 AM
Posts: 2,146, Visits: 501
This is a dynamic position which is stored in a private object inside Chart class - it can be referenced as

this.elements.canvas.x inside the flash code, where this refers to the instance of chart class.

Thanks,
Pallav Nadhani
FusionCharts Team

Post #1653
« Prev Topic | Next Topic »


Permissions Expand / Collapse

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


Execution: 0.047.