title: Building stack bar chart from objects array in flex
body: <p>I have a dynamic <code>ArrayCollection</code> that will contain an unknown number of objects of type <code>MyObj</code>:</p>
  
  <pre><code>class MyObj
  {
     type:String
     value:long
  }
  </code></pre>
  
  <p>each <code>MyObj</code> object has a different value of <code>type</code>.</p>
  
  <p>How can I build a single stacked bar from this array where each section of the stacked bar represents an object of <code>MyObj</code> (represents a <code>type</code>) and its length is the <code>value</code>?</p>