Adobe Dreamweaver Forums



Last 10 THreads :         static sound (Last Post : kglad - Replies : 11 - Views : 12 )           »          Code that can effect two movie clips (Last Post : Alessandroy - Replies : 2 - Views : 3 )           »          load xml into mc symbols (Last Post : kglad - Replies : 1 - Views : 2 )           »          Adobe Flash 10 kills Wimpy (Last Post : midiwriter - Replies : 83 - Views : 955 )           »          Create 2nd animation in same flash file (Last Post : dabooj - Replies : 0 - Views : 1 )           »          Local host and php Solutions help... (Last Post : RJweb - Replies : 1 - Views : 6 )           »          problems linking PDFs (Last Post : Alan - Replies : 3 - Views : 4 )           »          Flash movie not working in html (Last Post : WEBDavid - Replies : 0 - Views : 1 )           »          drop down menu over flash (Last Post : ltartisel - Replies : 2 - Views : 3 )           »          Flash-PHP Mail Form (Last Post : kglad - Replies : 3 - Views : 4 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-26-2008, 01:53 PM
shawn.yale
 
Posts: n/a
Diggs:
Default Charting Question: "Group By?"

Hi all,
I came across a problem yesterday that, so far, I have been unable to solve.
I'm wondering if I need to write my own handler. Here goes.

I have a data set that looks like this:[
{name="y2005", value="1.2", otherName="Texas"},
{name="y2005", value="3", otherName="Ohio"},
{name="y2005, value="2", otherName="Hawaii"},
{name="y2006", value="1.2", otherName="Texas"},
{name="y2006", value="3", otherName="Ohio"},
{name="y2006, value="2", otherName="Hawaii"},
{name="y2007", value="1.2", otherName="Texas"},
{name="y2007", value="3", otherName="Ohio"},
{name="y2007, value="2", otherName="Hawaii"}].

I want to set my score value to be the yField and I want a unique series for
each name value, however I want all of the values to be grouped by the
otherName value. So in this instance, I would see in my chart a 3 series group
for the axis value of Texas, a 3 series grouping for Ohio, and a 3 series group
for Hawaii.

I've already tried to use the categoryName property on the horizontal axis,
but I'm getting multiple "otherName" labels on my horizontal axis. For example
using this set, i would get Hawaii, 3 times on the axis, texas 3 times, and
ohio 3 times, but the data is charted on the last instance of the names.

Most data platforms have some kind of "group by" field, does this extend to
the Charting components??





Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-26-2008, 04:13 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Charting Question: "Group By?"


"shawn.yale" <syale@triad.rr.com> wrote in message
news:ggjjv8$kt6$1@forums.macromedia.com...
> Hi all,
> I came across a problem yesterday that, so far, I have been unable to
> solve.
> I'm wondering if I need to write my own handler. Here goes.
>
> I have a data set that looks like this:[
> {name="y2005", value="1.2", otherName="Texas"},
> {name="y2005", value="3", otherName="Ohio"},
> {name="y2005, value="2", otherName="Hawaii"},
> {name="y2006", value="1.2", otherName="Texas"},
> {name="y2006", value="3", otherName="Ohio"},
> {name="y2006, value="2", otherName="Hawaii"},
> {name="y2007", value="1.2", otherName="Texas"},
> {name="y2007", value="3", otherName="Ohio"},
> {name="y2007, value="2", otherName="Hawaii"}].
>
> I want to set my score value to be the yField and I want a unique series
> for
> each name value, however I want all of the values to be grouped by the
> otherName value. So in this instance, I would see in my chart a 3 series
> group
> for the axis value of Texas, a 3 series grouping for Ohio, and a 3 series
> group
> for Hawaii.
>
> I've already tried to use the categoryName property on the horizontal
> axis,
> but I'm getting multiple "otherName" labels on my horizontal axis. For
> example
> using this set, i would get Hawaii, 3 times on the axis, texas 3 times,
> and
> ohio 3 times, but the data is charted on the last instance of the names.
>
> Most data platforms have some kind of "group by" field, does this extend
> to
> the Charting components??


Flex has the GroupingCollection, which you _could_ use in this situation,
but you could also try something kind of like this:
http://flexdiary.blogspot.com/2008/0...g-example.html


Reply With Quote
  #3 (permalink)  
Old 11-26-2008, 06:24 PM
shawn.yale
 
Posts: n/a
Diggs:
Default Re: Charting Question: "Group By?"

Awesome Amy. Thank you! I will check both of those options out. I briefly
glanced at the grouping collection but thought that perhaps there was
functionality in the chart itself to handle this type of situation.

Cheers!

Reply With Quote


  #4 (permalink)  
Old 11-26-2008, 10:02 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Charting Question: "Group By?"


"shawn.yale" <syale@triad.rr.com> wrote in message
news:ggk3to$ae0$1@forums.macromedia.com...
> Awesome Amy. Thank you! I will check both of those options out. I
> briefly
> glanced at the grouping collection but thought that perhaps there was
> functionality in the chart itself to handle this type of situation.
>
> Cheers!


Let me know how it goes :-)


Reply With Quote
  #5 (permalink)  
Old 12-01-2008, 03:32 PM
shawn.yale
 
Posts: n/a
Diggs:
Default Re: Charting Question: "Group By?"

I tried both of the approaches but Im still not getting what I expect.
I used both the columnset and the groupingCollection but neither is showing me
the data at all.

Basically, I want to group my fields by name as my xField and my value is my
yField but I want the groups to be colelcted and displayed based on the
othername field.

so in this example, I would have one block for texas, one for ohio, and one
for hawaii and within each group I would be three individual graphs for the
name.

|y2005|y2006|y2007 |y2005|y2006|y2007 |y2005|y2006|y2007
Texas Ohio
Hawaii

like that.

Ive googled this to death. any help would be greatly appreciated. Even
better if you can show me some code cause Im not sure where the
groupingCollection goes in relation to the columnseries inside the mxml, and/or
where the columnset goes.

Thank you so much!

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:01 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk