title: How to stop graph by making stacked-barchart using MpChart android
body: <blockquote>
    <p>I am working on a project where I have to display data in graphical representation.For achieve this, I am using Mpchart library. According to my project requirement, I have to display every bar of barset on the same index according to that barset number but it is becoming stacked barchart that I dont want to have. </p>
  </blockquote>
  
  <p>For example :-</p>
  
  <pre><code>ArrayList&lt;String&gt; labels = new ArrayList&lt;String&gt;();
      labels.add("January");
      labels.add("February");
      labels.add("March");
      labels.add("April");
      labels.add("May");
      labels.add("June");
      labels.add("March");
      labels.add("April");
      labels.add("May");
      labels.add("June");
  
      // for create Grouped Bar chart
      ArrayList&lt;BarEntry&gt; group1 = new ArrayList&lt;&gt;();
      group1.add(new BarEntry(1f, 0));
      group1.add(new BarEntry(8f, 0));
      group1.add(new BarEntry(1f, 0));
      group1.add(new BarEntry(1f, 0));
  
      ArrayList&lt;BarEntry&gt; group2 = new ArrayList&lt;&gt;();
      group2.add(new BarEntry(2f, 1));
      group2.add(new BarEntry(2f, 1));
      group2.add(new BarEntry(2f, 1));
      group2.add(new BarEntry(2f, 1));
  
      ArrayList&lt;BarEntry&gt; group3 = new ArrayList&lt;&gt;();
      group3.add(new BarEntry(3f, 2));
      group3.add(new BarEntry(3f, 2));
      group3.add(new BarEntry(3f, 2));
      group3.add(new BarEntry(3f, 2));
  
      ArrayList&lt;BarEntry&gt; group4 = new ArrayList&lt;&gt;();
      group4.add(new BarEntry(4f, 3));
      group4.add(new BarEntry(4f, 3));
      group4.add(new BarEntry(4f, 3));
      group4.add(new BarEntry(4f, 3));
  
      ArrayList&lt;BarEntry&gt; group5 = new ArrayList&lt;&gt;();
      group5.add(new BarEntry(5f, 4));
      group5.add(new BarEntry(5f, 4));
      group5.add(new BarEntry(5f, 4));
      group5.add(new BarEntry(5f, 4));
  
      ArrayList&lt;BarEntry&gt; group6 = new ArrayList&lt;&gt;();
      group6.add(new BarEntry(6f, 5));
      group6.add(new BarEntry(6f, 5));
      group6.add(new BarEntry(6f, 5));
      group6.add(new BarEntry(6f, 5));
  
      ArrayList&lt;BarEntry&gt; group7 = new ArrayList&lt;&gt;();
      group7.add(new BarEntry(7f, 6));
      group7.add(new BarEntry(7f, 6));
      group7.add(new BarEntry(7f, 6));
      group7.add(new BarEntry(7f, 6));
  
      ArrayList&lt;BarEntry&gt; group8 = new ArrayList&lt;&gt;();
      group8.add(new BarEntry(8f, 7));
      group8.add(new BarEntry(8f, 7));
      group8.add(new BarEntry(8f, 7));
      group8.add(new BarEntry(8f, 7));
  
      ArrayList&lt;BarEntry&gt; group9 = new ArrayList&lt;&gt;();
      group9.add(new BarEntry(9f, 8));
      group9.add(new BarEntry(9f, 8));
      group9.add(new BarEntry(9f, 8));
      group9.add(new BarEntry(9f, 8));
  
      ArrayList&lt;BarEntry&gt; group10 = new ArrayList&lt;&gt;();
      group10.add(new BarEntry(10f, 9));
      group10.add(new BarEntry(10f, 9));
      group10.add(new BarEntry(10f, 9));
      group10.add(new BarEntry(10f, 9));
  
      BarDataSet barDataSet1 = new BarDataSet(group1, "Group 1");
      barDataSet1.setColors(ColorTemplate.COLORFUL_COLORS);
      barChart.isTransitionGroup();
  
      BarDataSet barDataSet2 = new BarDataSet(group2, "Group 2");
      barDataSet2.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet3 = new BarDataSet(group3, "Group 3");
      barDataSet3.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet4 = new BarDataSet(group4, "Group 4");
      barDataSet4.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet5 = new BarDataSet(group5, "Group 5");
      barDataSet5.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet6 = new BarDataSet(group6, "Group 6");
      barDataSet6.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet7 = new BarDataSet(group7, "Group 7");
      barDataSet7.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet8 = new BarDataSet(group8, "Group 8");
      barDataSet8.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet9 = new BarDataSet(group9, "Group 9");
      barDataSet9.setColors(ColorTemplate.COLORFUL_COLORS);
  
      BarDataSet barDataSet10 = new BarDataSet(group10, "Group 10");
      barDataSet10.setColors(ColorTemplate.COLORFUL_COLORS);
  </code></pre>
  
  <blockquote>
    <p>it makes the bars staked and same index bars overlap each other.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/MIuJY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MIuJY.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>how can I display them side by side.</p>
  </blockquote>
  
  <p>I am using library Mpchart version 2.1.6 </p>
  
  <p>Thank in advance. </p>