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

[Feature / Help] Resize Chart based on data visibility #3705

Closed
1 task done
reteps opened this issue Oct 22, 2018 · 0 comments
Closed
1 task done

[Feature / Help] Resize Chart based on data visibility #3705

reteps opened this issue Oct 22, 2018 · 0 comments

Comments

@reteps
Copy link

reteps commented Oct 22, 2018

  • I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.

  • I have posted a stackoverflow question, and gotten no responses.

What did you do?

I tried to resize the chart using

    line?.notifyDataSetChanged()
    self.chart.data?.notifyDataChanged()
    self.chart.notifyDataSetChanged()

after line.visible was set to false.

What did you expect to happen?

ℹ I expected the chart to resize the boundaries based on the shown lines.

What happened instead?

ℹ Nothing, the hidden lines were still within the boundaries.
image
image

Charts Environment

*Most Recent
Beta 10
4.2
IOS
Mojave

Demo Project (None Yet)

https://stackoverflow.com/questions/52908779/fit-chart-bounds-to-data-on-change

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