1 Reply Latest reply on Jul 14, 2009 4:46 AM by _Natasha_

    Multiple initializers for property 'dataProvider'. (note: 'dataProvider' is the default property of 'mx.charts.LineChart')

    KalavatiSingh

      Hi ,

          I am using VeiwStack in my application and I am planning to display Line Charts in them.But I am stuck up with the this error.Here is the code

       

       

      <mx:LineChart id="linechart4"  dataProvider="{chart_data}"
                      showDataTips="true" width="400" height="80">
                       <mx:horizontalAxis>
                           <mx:LinearAxis baseAtZero="true"  title="Timestamp" minimum="{x_min}" maximum="{x_max}" />
                           
                       </mx:horizontalAxis>
                      <mx:verticalAxis>
                           <mx:LinearAxis id="v1r1"  title ="Mode"/>
                      </mx:verticalAxis>
                      <mx:verticalAxisRenderers>
                          <mx:AxisRenderer placement="left" axis="{v1r1}" titleRenderer="events.CustomChartTitleRenderer"/>
                      </mx:verticalAxisRenderers>       
                          <mx:series>
                          <mx:LineSeries  xField="t_value" yField="e_value" >
                              <mx:lineStroke>
                                  <mx:Stroke
                                      color="0x032771"
                                      weight="1"
                                      alpha="1"
                                  />
                              </mx:lineStroke>
                          </mx:LineSeries>
                      </mx:series>
                      <mx:Text text="Upstream LQI" fontWeight="bold" fontSize="12"/>
                  </mx:LineChart>
              </mx:VBox>
               </mx:ViewStack>

       

          <mx:ControlBar>
              <mx:ToggleButtonBar dataProvider="{vs}" id="toggle" toolTip="{togToolTip}"/>
            
          </mx:ControlBar>

        Any Suggestions  are invited

       

       

       

      Regards

      Kalavati Singh

      kalavati_singh@yahoo.co.in