Skip to content Skip to sidebar Skip to footer

How To Get A Continuous Columnchart?

I'm using a ColumnChart to represent the elevation in a map, as suggested by Google. However, the columns are separated by spaces, and that renders ugly white spaces between the co

Solution 1:

You can specify option:

bar: {groupWidth: "100%"}

bar.groupWidth: Percentage of the available width for each group (e.g. '20%'), where '100%' means that groups have no space between them

Update: That example uses old version of column charts which loads package columnchart

google.load("visualization", "1", {packages:["columnchart"]});

The latest code for column chart is loaded using corechart:

google.load('visualization', '1', {packages: ['corechart']});

Change that and example should work as expected without spaces.

Post a Comment for "How To Get A Continuous Columnchart?"