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

How to Increase space between bars #11

Open
benjimkh opened this issue Oct 3, 2019 · 2 comments
Open

How to Increase space between bars #11

benjimkh opened this issue Oct 3, 2019 · 2 comments

Comments

@benjimkh
Copy link

benjimkh commented Oct 3, 2019

hello @nhatminh12369 , i want to increace the space between bars
let's say the default space between each bar is like 20,how can i increase it to something like 50 or 100?

@Bhavesh091
Copy link

Bhavesh091 commented Dec 24, 2019

Hello, For space increase between each bar follow steps

  1. Open BasicBarChart.swift file
  2. Scroll to updateDataEntries function
func updateDataEntries(dataEntries: [DataEntry], animated: Bool) {
        self.animated = animated
        self.presenter.dataEntries = dataEntries
       // here change space
        self.presenter.space =  dynamicSpace
        self.barEntries = self.presenter.computeBarEntries(viewHeight: self.frame.height)
    }

This will work for everyone

@swimnbird
Copy link

    self.presenter.space =  dynamicSpace

Cannot find 'dynamicSpace' in scope

?

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