PDA

View Full Version : charting help.


Anitha
04-15-2008, 05:32 AM
Hi all,

I was trying out a charting example from the below url...


http://examples.adobe.com/flex2/inproduct/sdk/dashboard/dashboard.html


I was walking through the code and in the file RegionBreakDown.mxml i
found a line


<mx:PieChart id="pcRegion" dataProvider="{_month.region}" name="Chart
data is available in grid view" toolTip="{pcToolTip}"


can somebody help me out what is this _month.region and how this
value is made available here. I am totally stuck up there.

Anitha.


Thanks in Advance,

kahuja
04-15-2008, 07:41 AM
The variable is defined in the same file

[Bindable()]
private var _month:Object;


Is that what you meant?

Anitha
04-15-2008, 10:28 AM
Thanks for your reply Kahuja.Here iam tried to make a dataaccess between the components,That's why i get confusion at that step.Now having a look at it. The example url includes data something which is dummy.Bt want to Know abt accessing something from the Webservice. And also now iam in baby steps through the mxml components.hence struggling with the metatag,dispatchevent,getter setter,...all releted to components.any simple referrence please????

kahuja
04-15-2008, 10:39 AM
Anitha,

My recommendation to you would be to spend some time with the basics on Flex, it seems (to me and i could be wrong) that you have taken a deep dive into making an application. This can have fallouts:

1. End up writing sub-optimal code/logic;
2. Trying to get help, but people helping you today may get busy


If i was to build a ramp-up plan, this is how I would recommand
1. Flex and SDK - 0.5 days
2. Action Script and MXML - 1.5 days
3. Events - 1 day
4. Design Pattern (MVC, Command, Singleton) - 2 days [Do this if you do not know already]
5. Cairngorm or PureMVC - 1.5 days [You can pick any, but I prefer cairngorm]
6. Remote connectivity (Remote Objects, HTTPService, AMF...) - 1 day

If you want to know some resources, i had blogged (http://scrtchpad.wordpress.com/2008/04/15/what-is-flex-2/) about Flex architecture, which has some links to get you started.

Anitha
04-15-2008, 12:55 PM
Thanks for your reply kahuja

kahuja
04-15-2008, 03:56 PM
Does that helps? I do not want you to shutdown and if you still need assistance, keep posting.