0 Replies Latest reply on Feb 2, 2009 11:29 PM by vijay2win

    Looking for resolution for Column chart issue

    vijay2win


      Hi there,
      I see a bug in the below link and the work around is mentioned.... i have a same kind of problem.... but diffrent than given below...
      http://bugs.adobe.com/jira/browse/FLEXDMV-1413#action_168312

      for the below code.... i am not getting the right width of the column.... when more columns are added the width keeps on reducing.... is there something wrong in the code or is it a bug? Plz help

      for (var s:String in wholist) {
      // Use all items whose name matches s.
      var localXML:XMLList = myXML.row.(STATUSCODE==s);
      // Create the new series and set its properties.
      var localSeries:ColumnSeries = new ColumnSeries();
      var lineSeries:LineSeries = new LineSeries();
      localSeries.dataProvider = localXML;
      lineSeries.dataProvider = localXML;
      localSeries.yField = "avg";
      lineSeries.yField = "count";
      localSeries.xField = "recordTime";
      lineSeries.xField = "recordTime";

      // Set values that show up in dataTips and Legend.
      localSeries.displayName = s;
      localSeries.verticalAxis = vlAxis;
      localSeries.horizontalAxis = scCatAxis;

      // Add to the Array for Stacking the Graph
      outerSet.series.push(localSeries);

      //Set values that show up in dataTips and Legend. - Line Series
      lineSeries.displayName = s;
      lineSeries.verticalAxis = vbAxis;
      lineSeries.horizontalAxis = scCatAxis;

      // Add the new Array of series to the chart.
      var currentSeries:Array = stCodeChart.series;
      currentSeries.push(outerSet);
      currentSeries.push(lineSeries);
      stCodeChart.series = currentSeries;
      }
      }
      }

      IF I REMOVE THE LINESERIES THE CHART LOOKS FINE..... I AM CONFUSED AND TRIED SOMETHINGS AND NOTHING WORKED....

      Thanks and Regards
      VJ