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

Better way to manage Stacked Bar Chart Value labels? #3295

Closed
annjawn opened this issue Feb 24, 2018 · 2 comments
Closed

Better way to manage Stacked Bar Chart Value labels? #3295

annjawn opened this issue Feb 24, 2018 · 2 comments

Comments

@annjawn
Copy link

annjawn commented Feb 24, 2018

First of all, thanks for this great library. I am still learning the nuances of using this, so please bear with me. I have successfully rendered a Stacked Barchart using data, but when I am pushing some production data into my tests, I am noticing that there are situations where the barcharts value labels are overlapping.

image

I can display the values label in the bottom by setting chartView.drawValueAboveBarEnabled to false, but the net outcome is the same i.e. the labels still overlap. The only other solution for this for me is to - data.setDrawValues(false) but it makes me sad that I can't show these values on the chart itself.

Is there a way to define the position of the values based on individual stack? for example for the top stack the value should appear above the bar, and for the bottom stack the value should appear below the bar? Or is there already some other way to do it correctly that I am missing.

@liuxuan30
Copy link
Member

not yet. But you are welcome to file a PR to support this. The label overlapping is a known issue, as the top stack is very short, the space is not enough then.

@mackyfamous
Copy link

any updates in this issue?

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