0 Replies Latest reply on Nov 7, 2012 5:24 PM by madhooper

    unable to get lineseries to render

    madhooper Level 1

      I'm attempting to add a line series to a  column chart that renders fine. But the line series won't render.

      I created a line chart without the column chart using the exact same dataprovider and the linechart renders just fine

       

      <mx:ColumnChart id="slaCdmaChart" width="100%" height="100%" dataProvider="{eModel.slaChartData}"  showDataTips="true" color="#FFFFFF">

                  <mx:horizontalAxis>

                      <mx:CategoryAxis id="title" title="Report Period" categoryField="report_period"/>

                  </mx:horizontalAxis>   

                 

                  <mx:horizontalAxisRenderers>

                      <mx:AxisRenderer labelRotation="45" axis="{title}"/>

                  </mx:horizontalAxisRenderers>

                 

                  <mx:verticalAxis>

                      <mx:LinearAxis title="Rates"/>

                  </mx:verticalAxis>

                 

                  <mx:series>

                      <mx:ColumnSet type="clustered">   

                          <mx:ColumnSeries id="DropSeries" displayName="CDMA Drop Rate %"

                                           name="Drop %" maxColumnWidth="8"

                                           showDataEffect="slideIn" hideDataEffect="slideOut"                                   

                                           yField="cdrop">

                              <mx:fill>

                                  <mx:SolidColor color="0xCD0000"/>

                              </mx:fill>

                          </mx:ColumnSeries>

                     

                      <mx:ColumnSeries id="CdmaBlkRate" displayName="CDMA Block Rate"

                                       name="Drop %" maxColumnWidth="8"

                                       showDataEffect="slideIn" hideDataEffect="slideOut"

                                       yField="ctotblock">

                          <mx:fill>

                              <mx:SolidColor color="0x336699"/>

                          </mx:fill>

                      </mx:ColumnSeries>

                      </mx:ColumnSet>

                     

                      <mx:LineSeries

                          dataProvider="{eModel.slaBlockTarget}"

                          yField="ctotblock"

                          xField="report_period"

                          displayName="Target2"

                          form="horizontal">

                         

                          <mx:horizontalAxis>

                              <mx:CategoryAxis categoryField="ctotblock"/>

                          </mx:horizontalAxis>

                         

                      </mx:LineSeries>

                  </mx:series>   

              </mx:ColumnChart>

                  <mx:Legend color="0xFFFFFF" dataProvider="{slaCdmaChart}"/>

       

       

          <mx:LineChart dataProvider="{eModel.slaBlockTarget}" showDataTips="true">

                  <mx:horizontalAxis>

                      <mx:CategoryAxis categoryField="ctotblock"/>

                  </mx:horizontalAxis>

                  <mx:series>

                      <mx:LineSeries yField="ctotblock" displayName="ctotblock"/>

                      <mx:LineSeries yField="report_period" displayName="report_period"/>

                  </mx:series>

          </mx:LineChart>

       

       

       

      Thanks for the help in advance.