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

Change size of the view that contain the chart #440

Closed
mlorenzeCDS opened this issue Oct 2, 2015 · 3 comments
Closed

Change size of the view that contain the chart #440

mlorenzeCDS opened this issue Oct 2, 2015 · 3 comments

Comments

@mlorenzeCDS
Copy link

How is the best way to manage the redraw of the chart when the size of the View that contain the chart is modify (big view to small and the other way around?

The chart size is modify too, that the problem with the transition of the change of the view (stuttering).

Thanks for your help!

@danielgindi
Copy link
Collaborator

Can you record a demo to let us see what you are experiencing? Basically the chart view is handling resize by itself, you don't have to do nothing...

@danielgindi
Copy link
Collaborator

Closed for no response.

@ledanh57
Copy link

ledanh57 commented Apr 22, 2019

Hi @danielgindi ,

I guess I'm having the same problem here and yet to figure out. At first I init the bar chart for all days in a certain month. It works just great but if I switch to year by changing the count of BarChartDataSet to 12 (12 months), then I ran into problem where some months displayed twice or even triple.

I found out that if I init for the year first, it would be fine until I switch to month and then back. Here comes some screenshot:

  1. If I init the year first, it should be fine:

Screen Shot 2019-04-22 at 6 40 28 PM

  1. In case I init month first, then when it comes to year it'd be like this:

Screen Shot 2019-04-22 at 6 40 46 PM

Should there be any method to redraw the view when count changed?

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