Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Space Between Bars in Bar Chart in Google Visualization API

I have a single data series and need the bars stacked right next to each other. What Google Visualization API call / property would help me accomplish this?

like image 424
necromancer Avatar asked Oct 10 '13 21:10

necromancer


1 Answers

Set the bar.groupWidth option. You can either set it as an integer (number of pixels for the group to take up) or as a percent of the available space. In your case, I suggest using the percent:

bar: {
    groupWidth: '100%'
}

That will remove all space from between adjacent bars.

like image 92
asgallant Avatar answered Sep 28 '22 11:09

asgallant