Nick
Nick

Reputation: 195

How do I change the spacing between columns in c3.js?

For example, my current chart looks like this bar chart

How do I make them look like this ?

enter image description here

Upvotes: 1

Views: 1028

Answers (1)

Serg Chernata
Serg Chernata

Reputation: 12400

You can do it with the ratio setting:

bar.width.ratio = 0.8

or

bar: {
    width: {
        ratio: 0.8
    }
}

Upvotes: 1

Related Questions