title: Horizontal Bar Chart Exactly Like as Following?
body: <p>I am facing some issues in Horizontal Bar Chart. I want to set exactly like as screenshot. I tried some examples but mostly examples of  barchart y values are on right side </p>
  
  <p>XML Code</p>
  
  <pre><code>&lt;com.github.mikephil.charting.charts.HorizontalBarChart
          android:id="@+id/barchart"
          android:layout_width="match_parent"
          android:layout_height="150dp" /&gt;
  </code></pre>
  
  <p>Java Code</p>
  
  <pre><code> HorizontalBarChart barChart = (HorizontalBarChart) findViewById(R.id.barchart);
  
          List&lt;String&gt; labels = new ArrayList&lt;String&gt;();
          labels.add("Free Lancing");
  
          // create BarEntry for Bar Group 1
          ArrayList&lt;BarEntry&gt; entries = new ArrayList&lt;&gt;();
          entries.add(new BarEntry(6f, 0));
  
          /*BarDataSet bardataset = new BarDataSet(entries, "Cells");
  
          BarData data = new BarData(bardataset, bardataset);
          barChart.setData(data); // set the data and list of labels into chart*/
  
  
          // creating dataset for Bar Group 2
          BarDataSet barDataSet2 = new BarDataSet(entries, "Bar Group 2");
          barDataSet2.setColors(ColorTemplate.COLORFUL_COLORS);
  
  
  
          List&lt;IBarDataSet&gt; dataSets = new ArrayList&lt;&gt;();  // combined all dataset into an arraylist
  
          dataSets.add(barDataSet2);
  
  // initialize the Bardata with argument labels and dataSet
          BarData data = new BarData(labels, dataSets);
           // set custom bar width
          barChart.setData(data);
  
          barChart.setBorderWidth(50f);
  </code></pre>
  
  <p>Screenshot</p>
  
  <p><a href="https://i.stack.imgur.com/YVgos.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YVgos.png" alt="enter image description here"></a></p>