[flexcoders] Re: Variable number of columns in ColumnChart

2006-07-31 Thread Anthony DeBonis
I also ran into an issue like while dynamicly creating ColumnSeries() this and .push onto the Array worked BUT does not update the Legend. I have tired resetting leged's DP back to the Chart again but nothing. Any ideas? Flex 2 w/Charting -- Flexcoders Mailing List FAQ:

Re: [flexcoders] Re: Variable number of columns in ColumnChart

2006-07-31 Thread Brendan Meutzner
Anthony,I had a similar issue with my legend not getting updated... check carefully that you're setting displayName on your new Series item... without that, my legend wasn't getting updated...HTH,Brendan On 7/31/06, Anthony DeBonis [EMAIL PROTECTED] wrote: I

[flexcoders] Re: Variable number of columns in ColumnChart

2006-07-31 Thread Anthony DeBonis
Brendan - thank you that worked!!! In my case it was: in side a loop { var cs:ColumnSeries = new ColumnSeries(); cs.yField = some dynamic val... cs.name = some dynamic val... //added the next line and Legend now displays... cs.displayName = some dynamic val... then

[flexcoders] Re: Variable number of columns in ColumnChart

2006-07-31 Thread Ben Agre
I had this problem to, if i remember right try to validate the chart or legend in your function as the last line. Use validate now such as private function chartUpdater(chart:ColumnChart):void{ //do something chart.validateNow(); } If that doesnt, make sure the legends dataprovider is the chart

[flexcoders] Re: Variable number of columns in ColumnChart

2006-06-28 Thread ben.clinkinbeard
Anyone? --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: Hello, I have a ColumnChart whose columns are based on selections in another part of the app. So there can be anywhere between 1 and 4 column sets. Unfortunately, I can't figure out how to add the

RE: [flexcoders] Re: Variable number of columns in ColumnChart

2006-06-28 Thread Matt Horn
: [flexcoders] Re: Variable number of columns in ColumnChart Anyone? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard [EMAIL PROTECTED] wrote: Hello, I have a ColumnChart whose columns are based on selections in another part of the app. So there can

[flexcoders] Re: Variable number of columns in ColumnChart

2006-06-28 Thread Doug Lowder
Hi Ben, If you're just looking for a way to have the legend display different items than the chart, instead of setting the Legend's dataProvider to the chart, set it to an array of items you want displayed. In Flex 1.5, I did this by setting the Legend dataProvider to a copy of the array used