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

Resize chart after adding limit line #2739

Closed
dexterslabor opened this issue Aug 21, 2017 · 2 comments
Closed

Resize chart after adding limit line #2739

dexterslabor opened this issue Aug 21, 2017 · 2 comments

Comments

@dexterslabor
Copy link

Hi,
Thanks for your great work.

I add a limit line when pressing a button. However, whenever the value is outside of the chart boundaries, I do not see it. I have tried the following to update the chart:
lineChart.data?.notifyDataChanged()
lineChart.notifyDataSetChanged()
and
lineChart.setNeedsLayout()
lineChart.setNeedsDisplay()
without success. Any ideas how to approach this?

@liuxuan30
Copy link
Member

whenever the value is outside of the chart boundaries, I do not see it

Why should we see the limit line when the value is outside of the bound?

@dexterslabor
Copy link
Author

Completely true, thanks for unlocking my mental blockage.

I solved it with a workaround, by simply adding hidden variables.
Sorry for the late reaction.

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

2 participants