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

Second to last value in stacked BarChart not drawn when the last value is zero #3984

Closed
1 task done
igorkulman opened this issue May 4, 2019 · 1 comment
Closed
1 task done

Comments

@igorkulman
Copy link

igorkulman commented May 4, 2019

What did you do?

I have created a stacked BarChart with 3 values, just like in the StackedBarChartViewController sample.

The values are in form of [val1, val2, val3]. Sometimes val3 is 0

What did you expect to happen?

I expected the BarChart to be drawn properly, every non-zero value to be shown

What happened instead?

Anytime val3 is 0 then val2 does not get drawn. Only its label is visible:

Simulator Screen Shot - iPhone X - 2019-05-04 at 16 01 01

Charts Environment

Charts version/Branch/Commit Number:
Xcode version: 10.2.1
Swift version: 5
Platform(s) running Charts: iOS
macOS version running Xcode: 10.14.4

Demo Project

In the sample project open StackedBarChartViewController and change the setChartData method to sometimes or always set val3 = 0.

@igorkulman igorkulman changed the title Second to last value in stacked BarChart draw clear when the last value is zero Second to last value in stacked BarChart not drawn when the last value is zero May 4, 2019
@igorkulman
Copy link
Author

Actually it is a bug in #3754 not in the library itself

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