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

When a value repeats, bars are not showed #766

Closed
jpv123 opened this issue Feb 20, 2016 · 1 comment
Closed

When a value repeats, bars are not showed #766

jpv123 opened this issue Feb 20, 2016 · 1 comment

Comments

@jpv123
Copy link

jpv123 commented Feb 20, 2016

Hi, sorry for my bad english. I'm using for my first time iOS-charts but I have a weird issue

I implemented a barchartView. Everything works as expected. However I found that if a value is repeated in a BarChartData, the bar for the second value is not displayed. For example in this array:

array = [20.0, 4.0, 6.0, 3.0, 12.0, 16.0, 4.0, 18.0, 2.0, 4.0, 5.0, 4.0]

every bar with a value of 4.0 except the first one is not displayed. However if I change to this

array = [20.0, 4.0, 6.0, 3.0, 12.0, 16.0, 21.0, 18.0, 2.0, 9.0, 5.0, 10.0]

it works perfectly. Am I missing something?

Thanks in advance

@jpv123 jpv123 closed this as completed Feb 20, 2016
@jpv123
Copy link
Author

jpv123 commented Feb 20, 2016

Found the error. The data is overwritten in the xIndex by my code. Sorry

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