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

BarChartView shows on UI when y value is zero #4000

Closed
1 task done
txm5586 opened this issue May 14, 2019 · 2 comments
Closed
1 task done

BarChartView shows on UI when y value is zero #4000

txm5586 opened this issue May 14, 2019 · 2 comments

Comments

@txm5586
Copy link

txm5586 commented May 14, 2019

What did you do?

I'd like to know if it's possible to the draw a bar just to indicate the value zero.
By using a BarChartView, I'm able to achieve this result:

IMG_2423

Notice that on "jan" the positive and negative values are zero. But visually, it doesn't show anything (since is zero of course)

What did you expect to happen?

I want a a bar indication even when value is zero. Like this:

IMG_2423

Is it possible? Thank you.

Charts Environment

Charts version/Branch/Commit Number: 3.2.2
Xcode version: 10.1
Swift version: 4.2
Platform(s) running Charts: iPhone 6s Plus
macOS version running Xcode: macOS 10.14.5 (Mojave)

@txm5586 txm5586 changed the title Indicates when value is zero on BarChartView BarChartView indicates when y value is zero May 14, 2019
@txm5586 txm5586 changed the title BarChartView indicates when y value is zero BarChartView indicates when y value is zero May 14, 2019
@txm5586 txm5586 changed the title BarChartView indicates when y value is zero BarChartView indicates when y value is zero May 14, 2019
@txm5586 txm5586 changed the title BarChartView indicates when y value is zero BarChartView shows on UI when y value is zero May 14, 2019
@shivamKp
Copy link

I am also trying to do the same thing .

@liuxuan30
Copy link
Member

then you have to modify the code yourself like provide a small rect if rect is zero.

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

3 participants