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

BarChartView problem on dataset count changed #3958

Closed
ledanh57 opened this issue Apr 22, 2019 · 1 comment
Closed

BarChartView problem on dataset count changed #3958

ledanh57 opened this issue Apr 22, 2019 · 1 comment

Comments

@ledanh57
Copy link

I'm having the problem with dataset change 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?

@ledanh57
Copy link
Author

Updated:

  • Issue fixed if I set minXRange and maxXRange to the same value. Like this:
    barChartView.setVisibleXRange(minXRange: 7, maxXRange: 7)

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

1 participant