Skip to content

specificPositions not working in the HorizontalBarChart #295

Description

@jihoon4372

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions