Reputation: 33
How could I add some space between two bars from the same group, in NVD3 chart?
I try chart.groupSpacing(0.5)
but nothing changes...
I can't put any pictures because I need at least 10 reputation.
Upvotes: 2
Views: 3309
Reputation: 1446
The groupSpacing changes distance between groups of bars.
var chart = nv.models.multiBarChart()
.groupSpacing(0.5)
;
I've created an example here
If you want to add space between bars within a particular group then you'll need to modify nvd3 source or write a multibar using pure d3. This answer will be useful How to add space between bars in a grouped bar chart in a nvd3 grouped multibar chart?
Upvotes: 6