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

Removing LineChartView to save memory? #4114

Closed
1 task done
seanngpack opened this issue Aug 22, 2019 · 1 comment
Closed
1 task done

Removing LineChartView to save memory? #4114

seanngpack opened this issue Aug 22, 2019 · 1 comment

Comments

@seanngpack
Copy link

seanngpack commented Aug 22, 2019

General question:

Is there an elegant way to unload a LineChartView object to save memory?

Say I have 3 chart views I want to toggle between (chart1, chart2, chart3).
Chart1 is displayed by default. So now I want to see chart2, I would hide chart1 (chart1.isHidden = true) and load chart2. Then I want to see chart3 so I hide chart2, however chart1 and chart2 are still in memory, so how can I offload them?

Thanks!

@cachobong
Copy link

Why not changed the Data Set dynamically instead?

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