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

Disable bar selection or highlight? #2699

Closed
seenoevo opened this issue Aug 10, 2017 · 2 comments
Closed

Disable bar selection or highlight? #2699

seenoevo opened this issue Aug 10, 2017 · 2 comments

Comments

@seenoevo
Copy link

seenoevo commented Aug 10, 2017

I'm trying to disable the user from selection of any bars in a BarChartView.

In following #2337, I did the following with no results: barChartView.highlightValue(nil, callDelegate: true) as well as barChartView.highlightValue(nil)

In following stackoverflow's answer How to disable selection of bar char? I also did the following barChartView.delegate?.chartValueNothingSelected!(barChartView) with no results.

What is the right away to disable selection/highlight in a BarChartView?

@seenoevo seenoevo reopened this Aug 11, 2017
@seenoevo
Copy link
Author

chartDataSet = BarChartDataSet(values: dataEntries, label: "")
chartDataSet.highlightEnabled = false

chartDataSet.highlightEnabled = false needs to be called AFTER initializing the BarChartDataSet object

@ZaidSA
Copy link

ZaidSA commented Apr 8, 2019

chartDataSet.highlightAlpha = 0 worked for me.

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

2 participants