2012-01-13 1 views
2

はout.Belowが私builddatasetとchartfactoryachartengine棒グラフのXとYのプロットが重なっていますか?私は他よりも低い値とYの値が重複しているXとプロットのために積み重ねられたbar-graph.MyプロットをプロットするachartEngineを使用してい

protected XYMultipleSeriesDataset buildBarDataset(String[] titles, List<double[]> values) { 
     XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset(); 
     int length = titles.length; 
     for (int i = 0; i < length; i++) { 
      CategorySeries series = new CategorySeries(titles[i]); 
      double[] v = values.get(i); 
      int seriesLength = v.length; 
      for (int k = 0; k < seriesLength; k++) { 
       series.add(v[k]); 
      } 
      dataset.addSeries(i,series.toXYSeries()); 
     } 
     return dataset; 
    } 

私chartfactoryで圧迫されています。与えられたリンクを1として

mChartView = ChartFactory.getBarChartView(NTViewGraph.this, buildBarDataset(titles, values), renderer, 
       Type.STACKED); 

答えて

1

http://community.developer.motorola.com/t5/MOTODEV-For-Enterprise/Enterprise-Grade-Charts-part-II/ba-p/23420 

Use below methods and pass 0 to that methods. 
If you set it to 0 then it will not show any label and shows label that is externally set by You. And if you pass 1 then it shows 1 label in the interval of 10. 

renderer.setXLabels(0);  
renderer.setYLabels(0); 

私は、これはあなたを助けることを願っています。

関連する問題