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

barSpace attribute #2137

Closed
newbiebie opened this issue Feb 4, 2017 · 3 comments
Closed

barSpace attribute #2137

newbiebie opened this issue Feb 4, 2017 · 3 comments

Comments

@newbiebie
Copy link

Could not find barSpace attribute

@SvenMuc
Copy link
Contributor

SvenMuc commented Feb 5, 2017

You can find it here:

let data = BarChartData(dataSets: dataSets)
            
let groupSpace = 0.1                 // space between bar groups
let barSpace = 0.03                  // space between bars within a group

data.barWidth = (1.0 - groupSpace) / 2 - barSpace         // 2 = number of bars within a group
data.groupBars(fromX: 0.0, groupSpace: groupSpace, barSpace: barSpace)
            
barChart.data = data

@surayashivji
Copy link

Can the bar space be updated dynamically for each bar drawn? (different spacing between each bar on a chart)

@liuxuan30
Copy link
Member

not each bar.

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

4 participants