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

How to show bar chart value labels only on selection #1139

Closed
yigitserin opened this issue Jun 14, 2016 · 2 comments
Closed

How to show bar chart value labels only on selection #1139

yigitserin opened this issue Jun 14, 2016 · 2 comments

Comments

@yigitserin
Copy link

I looked into documentations and issues but couldn't find it.

My question is, how do hide bar chart labels initially but show them only on one of them is selected like this?

Image

@yigitserin
Copy link
Author

I used barChart.maxVisibleValueCount = 0 to hide labels, then used a marker. But is this method optimal?

@liuxuan30
Copy link
Member

in your data set, set.drawValuesEnabled = false to disable showing the value labels. marker depends on your logic, so you could use it, or override drawHighlighted to draw some text

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