I've setup my mpchart but one thing is missing,
I need to add those colorful indicators (drawables) below x-axis based on the y values like if y>5 it should be green otherwise red.
val xAxis = lineChart.xAxis
xAxis.apply {
setDrawGridLines(false)
isEnabled = true
position = XAxis.XAxisPosition.BOTTOM
textSize = 12F
textColor = Color.WHITE
}

I achieved this by extending XAxisRenderer class of MP chart library and overriding drawLabel function like this