-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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 Drawing is wrong without setting axisminimum #3751
Comments
the demo don’t set axisMinimum is ok.i copy demo into my project, it dosen’t work,i don’t understand |
i found solution,copy demo charts source cover your project source,it,ok |
I reproduce the issue in AnotherBarChartViewController, project attached
// let yVals = (0..<count).map { (i) -> BarChartDataEntry in |
this should be tested already with recent fix. have you called |
sorry it's a bit confusing about your issue. I will take a look |
Hey liuxuan30, thanks for your help. Updating did fix the problem! |
we had a release already. but we usually push a new version when Xcode require changes, or we had major updates. just bug fixes are not enough for a release I suppose. |
my advice would be use source code directly; it's easier to change. if you use pods or carthage, no problem, but fixing issues would be harder compared to source code. You could also point to master for carthage and pods |
What did you do?
Hello, I've built the following graph using iOS Charts and this dataset:
Here is what I get with my current code:
The selection selects the correct value but all bars have the same size
What did you expect to happen?
Now if I add the following line:
self.leftAxis.axisMinimum = -1140.0
The chart is correctly drawn:
Are we expected to dynamically set the axisMinimum at all times? Graphs with positive and negative are correctly drawn, but it looks like positive only dataset or negative only datasets requires an axisMinimum.
Charts Environment
Charts version/Branch/Commit Number: 3.2.1
Xcode version: 10
Swift version: 4.2
Platform(s) running Charts:
macOS version running Xcode:
The text was updated successfully, but these errors were encountered: