RE: [flexcoders] ColumnChart question

2007-01-31 Thread Matt Horn
Yes, you can create stacked, 100%, and overlaid charts in addition to
clustered charts by using the type property of the ColumnChart control.
For more information, see here:

http://livedocs.macromedia.com/flex/201/html/charts_formatting_110_46.ht
ml

hth,
matt horn
flex docs

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Crane
> Sent: Wednesday, January 31, 2007 10:24 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ColumnChart question
> 
> I need to display a chart that contains a value for total 
> users and then break it down by user types, What I currently 
> have is a columnchart that displays the bars for each user 
> type. Can I set what I currently have "infront" of another 
> single bar that discribes the total users? 
> 
> 
>  


Re: [flexcoders] ColumnChart question

2007-01-31 Thread Brendan Meutzner

Jeremy,

Not sure I understand your question, but are you looking for something like
this:

http://www.stretchmedia.ca/code_examples/offset_calculator/SeriesOffsetCalculator.html



Brendan


On 1/31/07, Jeremy Crane <[EMAIL PROTECTED]> wrote:


  I need to display a chart that contains a value for total users and
then break it down by user types, What I currently have is a
columnchart that displays the bars for each user type. Can I set what
I currently have "infront" of another single bar that discribes the
total users?







--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


RE: [flexcoders] ColumnChart question

2006-02-19 Thread Ely Greenfield





 
 
- to trigger a series to redraw in Flex 1.5, call 
invalidate ( In Flex 2, series are standard UIComponents, so you'll invalidate 
them just like any other component).
 
- but by default, a Column/Bar series in Flex 1.5 renders 
all items exactly the same. So if you want to render one bar differently from 
the rest, you'll have to write a custom renderer.
 
- essentially, you'll want your custom renderer to do 
this:
    - give it a field to tell it what the index is 
of the 'selected' bar.
    - when your custom renderer's beginDraw() 
function is called, set a counter to 0
    - with every call to draw(), increment the 
counter.
    - if the counter == the selectedIndex, draw 
using a different fill than the one passed in.
 
That should give you the effect you're looking 
for.
 
Ely.
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Graham, 
JasonSent: Sunday, February 19, 2006 7:49 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] ColumnChart 
question



  Flex 1.5 
  I want the bar that is clicked to 
  go to an alpha of 100% and the other bars to fade, say to an alpha of 
  60-70%. 
  No, not the entire BarSeries just 
  the selected bar.  
 
Thanks..
 




From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ely GreenfieldSent: Sunday, February 19, 2006 9:29 
PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] ColumnChart 
question
 
 
 
 
1. Are you using Flex 
1.5, or Flex 2 (note to all flexcoders membersyou'll probably get your 
answer faster if you let us all know this up 
front).
 
2. When the user clicks 
on a bar, do you want to make it darker, or the other bars 
lighter?
 
3. When the user clicks 
on a bar, are you trying to change its appearance relative to the other bars in 
the series, or change the appearance of its BarSeries relative to the other 
BarSeries in the chart?
 
Thanks,
Ely.
 
 



From: 
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Graham, JasonSent: Sunday, February 19, 2006 7:24 
PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] ColumnChart 
question
When I click on one of the bars in 
my column chart I want to show the selection of that bar by fading the 
rest.
 
I create the items with a fill of 
linear gradient and an alpha of 50.  So when the user clicks I want to set 
that bars alpha to 100.
 
When the bar is clicked I use the 
mouseClickedData.
 
I do the 
following
 
I have tried just about every 
invalidation I can think of after setting the 
alpha.
 
function chartClicked( event 
)
{
    var fill = 
event.hitData.element.getStyle("fill");
    for ( var 
i=0;i
    
{
   
fill.entries[i].alpha=100;
    
}
    
event.hitData.element.invalidateStyle(“fill);
 
.
.
.
}
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









RE: [flexcoders] ColumnChart question

2006-02-19 Thread Graham, Jason











 Flex
 1.5
 I
 want the bar that is clicked to go to an alpha of 100% and the other bars
 to fade, say to an alpha of 60-70%.
 No,
 not the entire BarSeries just the selected bar.  


 

Thanks..

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ely Greenfield
Sent: Sunday, February 19, 2006
9:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
ColumnChart question



 

 

 

 

1. Are you using Flex 1.5, or Flex 2 (note
to all flexcoders membersyou'll probably get your answer faster if you let
us all know this up front).

 

2. When the user clicks on a bar, do you
want to make it darker, or the other bars lighter?

 

3. When the user clicks on a bar, are you
trying to change its appearance relative to the other bars in the series, or
change the appearance of its BarSeries relative to the other BarSeries in the
chart?

 

Thanks,

Ely.

 

 







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Graham, Jason
Sent: Sunday, February 19, 2006
7:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ColumnChart
question

When I click on one of the bars in my column chart I want to
show the selection of that bar by fading the rest.

 

I create the items with a fill of linear gradient and an
alpha of 50.  So when the user clicks I want to set that bars alpha to
100.

 

When the bar is clicked I use the mouseClickedData.

 

I do the following

 

I have tried just about every invalidation I can think of
after setting the alpha.

 

function chartClicked( event )

{

    var fill = event.hitData.element.getStyle("fill");

    for ( var
i=0;i

    {

  
fill.entries[i].alpha=100;

    }

   
event.hitData.element.invalidateStyle(“fill);

 

.

.

.

}

 









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] ColumnChart question

2006-02-19 Thread Ely Greenfield





 
 
 
1. Are you using Flex 1.5, or Flex 2 (note to all 
flexcoders membersyou'll probably get your answer faster if you let us all 
know this up front).
 
2. When the user clicks on a bar, do you want to make it 
darker, or the other bars lighter?
 
3. When the user clicks on a bar, are you trying to change 
its appearance relative to the other bars in the series, or change the 
appearance of its BarSeries relative to the other BarSeries in the 
chart?
 
Thanks,
Ely.
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Graham, 
JasonSent: Sunday, February 19, 2006 7:24 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] ColumnChart 
question


When I click on one of the bars in 
my column chart I want to show the selection of that bar by fading the 
rest.
 
I create the items with a fill of 
linear gradient and an alpha of 50.  So when the user clicks I want to set 
that bars alpha to 100.
 
When the bar is clicked I use the 
mouseClickedData.
 
I do the 
following
 
I have tried just about every 
invalidation I can think of after setting the 
alpha.
 
function chartClicked( event 
)
{
    var fill = 
event.hitData.element.getStyle("fill");
    for ( var 
i=0;i
    
{
   
fill.entries[i].alpha=100;
    
}
    
event.hitData.element.invalidateStyle(“fill);
 
.
.
.
}
 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.