Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-32913

removeElement/addElement invalidates Chart Series

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK 4.1 (Release)
    • Charts
    • 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;
      }
      }

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: