forked from PhilJay/MPAndroidChart
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
I tried to use specificPositions in the HorizontalBarChart, but it does not work.
it works in the BarChart but it does not work in the HorizontalBarChart.
the code I used is
val hyAxis = hChart.axisLeft
hyAxis.removeAllLimitLines()
hyAxis.axisLineColor = Color.TRANSPARENT
hyAxis.gridColor = Color.TRANSPARENT
hyAxis.textColor = Color.BLACK
if(range!=0f){
hyAxis.axisMaximum = range * 5
}else{
hyAxis.axisMaximum = wMaximum * 5
}
hyAxis.axisMinimum = 0f
hyAxis.setDrawGridLines(false)
hyAxis.isEnabled = true
hyAxis.isShowSpecificPositions = true
hyAxis.specificPositions = floatArrayOf(300000f)
Could someone tell me if i wrote the code something wrong, so then I'll fix my codes with great appreciation
Metadata
Metadata
Assignees
Labels
No labels