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

Switch from Grouped Bar chart back to normal #3551

Closed
elliotcz97 opened this issue Jul 8, 2018 · 1 comment
Closed

Switch from Grouped Bar chart back to normal #3551

elliotcz97 opened this issue Jul 8, 2018 · 1 comment

Comments

@elliotcz97
Copy link

What did you do?

I made a Grouped Bar chart, and its working fine. I also have a Bar chart which works also.
And i have a segmented controller which when changed sets the dataset for the chart

What did you expect to happen?

I wanted to have all of my 3 kinds of dataset presented how it should be.
This is how the Grouped Bar chart looks:
bildschirmfoto 2018-07-08 um 03 45 40
This is the normal Bar Chart
bildschirmfoto 2018-07-08 um 03 45 14

What happened instead?

After i switch from the grouped back to the normal my bars get thicker and the view looks zoomed in, but when i tried to set the zoom to 0 it still looked the same.

bildschirmfoto 2018-07-08 um 03 46 03

Charts Environment

**Charts version/Branch/Commit Number: 3.0.2
**Xcode version: 8.3.2
**Swift version: 3
**Platform(s) running Charts: iOS
**macOS version running Xcode: Sierra

Demo Project

To be honest i also Posted a Question on StackOverflow and there i have posted the relevat functions.
https://stackoverflow.com/questions/51228333/how-to-switch-from-grouped-bar-chart-to-simple-bar-charts

Thanks in Advance for your answers!

@liuxuan30
Copy link
Member

how do you switch? seems like you didn't call notifyDataSetChanged?

@jjatie jjatie closed this as completed Sep 17, 2018
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