title: How to change particular label colour in Horizontal Bar Chart using Mp Chart in Android?
body: <p>How can i change the particular label text color in xaxis using Horizontal Bar Chart. Please show the attached screenshot and code.
  <a href="https://i.stack.imgur.com/O00ZY.png" rel="nofollow noreferrer">[Here is the screen short]</a></p>
  
  <p>I have changed the bar colour in to black but i have to change that text colour corresponding to that bar(For example:(You#) colour need to be change).The following code i have tried so far.</p>
  
  <pre><code>    XAxis xAxis1 = horizontalBarChart.getXAxis();
      xAxis1.setPosition(XAxis.XAxisPosition.BOTTOM);
      xAxis1.setTextSize(8);
      xAxis1.setSpaceBetweenLabels(8);
      xAxis1.setTypeface(tf);
      YAxis leftAxis = horizontalBarChart.getAxisLeft();
      leftAxis.setEnabled(false);
      for(int j=0;j&lt;BarEntryLabels1.size();j++){
          if ((BarEntryLabels1.get(j).contains("You"))){
              xAxis1.setTextColor(Color.parseColor("#000000"));
          }else{
              xAxis1.setTextColor(Color.parseColor("#701112"));
          }
      }
  </code></pre>
  
  <p>Any code and help would be appreciate, Thanks in advance.</p>