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

Bar Chart Delegate. #96

Closed
BurhanMughal opened this issue May 20, 2015 · 4 comments
Closed

Bar Chart Delegate. #96

BurhanMughal opened this issue May 20, 2015 · 4 comments

Comments

@BurhanMughal
Copy link

Hi Daniel,
Hope you are doing great.
I ran into a strange problem, i.e. Bar chart Delegate method.

What I want to achieve :
Click on the bar and Segue to another view controller.

Scenario :
I have bar chart with max visible count of 23, With adjustXLable true.
I have only two values to show on the graph 16,26 on index 15,17 respectively.

What is actually happening :
When I click anywhere (left) in the graph it perform segue with value of bar containing value 16.
When I click anywhere (right) in the graph it perform segue with value of bar containing value 26.

Can you please help me in this regard ?
What is possible solution for this ?
Thanks.

@danielgindi
Copy link
Collaborator

Where's the problem?

@BurhanMughal
Copy link
Author

The problem is it perform segue when I click on the Bar as well as anywhere in the graph, i.e. Area of Graph where no Bar exists.

@danielgindi
Copy link
Collaborator

Yes this is the way that the charts work, it finds the closest value. If you think this behaviour is wrong you can open an issue in the MPAndroidCharts repo.

@BurhanMughal
Copy link
Author

Ok Thanks for your reply.

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