How can i change the particular label text color in xaxis using Horizontal Bar Chart. Please show the attached screenshot and code. [Here is the screen short]
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.
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<BarEntryLabels1.size();j++){
if ((BarEntryLabels1.get(j).contains("You"))){
xAxis1.setTextColor(Color.parseColor("#000000"));
}else{
xAxis1.setTextColor(Color.parseColor("#701112"));
}
}
Any code and help would be appreciate, Thanks in advance.