Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 4.1 (Release)
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Run attached sample, chart shows
2. Click remove
3. Click Add
Actual Results:
When chart is added back to stage with addElement, the chart series does not show
Expected Results:
Chart added back onto stage correctly.
Workaround (if any):
Override this function in a subclass of CartesianChart:
override mx_internal function removeElements(parent:UIComponent,hasMask:Boolean):void
{
var n:int = parent.numChildren;
var stopIndex:int = hasMask ? 1 : 0;
for (var i:int = n - 1;
i >= stopIndex;
i--)
{
var c:DisplayObject = parent.removeChildAt;
var g:IChartElement = (c as IChartElement);
if (g && !(g is Series))
g.dataTransform = null;
}
}