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:
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
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
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
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
: [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
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
7 matches
Mail list logo