Note that there are some explanatory texts on larger screens.

plurals
  1. POAre multiple stacked Bar charts possible using Achartengine?
    text
    copied!<p>I tried adding another set of values to the demo example of <a href="http://www.androidadb.com/source/achartengine-read-only/achartengine/demo/org/achartengine/chartdemo/demo/chart/SalesStackedBarChart.java.html" rel="nofollow">stacked bar charts with achartengine</a>, but the new values introduced by me don't appear on the chart. Is Stacking bars limited to two bars?</p> <pre><code>public Intent getIntent(Context context) { String[] titles = new String[] { "Good", "Defect", "Repair" }; List&lt;double[]&gt; values = new ArrayList&lt;double[]&gt;(); values.add(new double[] { 14230, 12300, 1424, 15240, 15900, 19200, 22030, 21200, 19500, 15500, 12060, 14000 }); values.add(new double[] { 14230, 12300, 14240, 15244, 15900, 19200, 22030, 21200, 19500, 15500, 12600, 14000 }); values.add(new double[] { 5230, 7300, 9240, 10540, 7900, 9200, 12030, 11200, 9500, 10500, 11600, 13500 }); int[] colors = new int[] { Color.GREEN, Color.YELLOW, Color.RED }; XYMultipleSeriesRenderer renderer = buildBarRenderer(colors); setChartSettings(renderer, "Machine Efficiency Rates", "Machine", "NET produce", 0.5, 12.5, 0, 24000, Color.GRAY, Color.LTGRAY); renderer.getSeriesRendererAt(0).setDisplayChartValues(true); renderer.getSeriesRendererAt(1).setDisplayChartValues(true); renderer.getSeriesRendererAt(2).setDisplayChartValues(true); renderer.setXLabels(12); renderer.setYLabels(5); renderer.setXLabelsAlign(Align.LEFT); renderer.setYLabelsAlign(Align.LEFT); renderer.setPanEnabled(true, false); renderer.setZoomEnabled(true); renderer.setZoomRate(1.1f); renderer.setBarSpacing(0.5f); return ChartFactory.getBarChartIntent(context, buildBarDataset(titles, values), renderer, Type.STACKED); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload