Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specificPositions not working in the HorizontalBarChart #295

Open
jihoon4372 opened this issue Oct 11, 2024 · 0 comments
Open

specificPositions not working in the HorizontalBarChart #295

jihoon4372 opened this issue Oct 11, 2024 · 0 comments

Comments

@jihoon4372
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant