0 Replies Latest reply on Jan 23, 2010 1:04 PM by ehusar

    How to Stroke Pie Chart in Component?

    ehusar

      I have a component pie chart that contains the following...

       

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="800" height="600">
          <mx:SolidColor id="sc1" color="{parentDocument.pieColor}" alpha="{parentDocument.pieAlpha}"/>

       

          <mx:PieChart id="clock"
             dataProvider="{parentDocument.expenses}"
             showDataTips="false"
             width="550"
             height="550"
             x="10"
             y="10"
             innerRadius=".04">
             <mx:series>
                <mx:PieSeries
                    id="pieSeries"
                  field="Amount"
                  nameField="Expense"
                  fills="{[sc1]}"
                />
               
                <mx:stroke>
                  <mx:Stroke
                      color="0xC0C0C0"
                      weight="2"
                      alpha=".8"
                  />
              </mx:stroke>

             </mx:series>
          </mx:PieChart>
         

      </mx:Canvas>

       

      in my main xmxl I have the following....

       

                  import mx.graphics.Stroke;

       


      I am getting an error saying...

       

      Could not resolve <mx:stroke> to a component implementation

       

      How can I stroke my pie chart like I want?

       

      Thanks in advance.