Hi, there is no supported way to do this, and I believe that the
ColumnChart actually has the correct behavior here. The value "0" doesn't
mean that the bar does not exist, but that there is a value there and that
value is 0. We show that by doing an empty space where the bar would be.
I'd be more open to the idea that undefined or null should produce this
kind of behavior, but I think that even that argument is shaky.

- Sergey


On Wed, Sep 18, 2013 at 8:40 AM, chartuser <[email protected]> wrote:

> Hi all,
>
> kindly let me know how to remove a bar in *combo chart.*
>
> function drawVisualization() {
>         // Some raw data (not necessarily accurate)
>         var data = google.visualization.arrayToDataTable([
>           ['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua New
> Guinea', 'Rwanda', 'Average'],
>           ['2004/05',  165,      938,         522,             0,
>   450,      614.6],
>           ['2005/06',  135,      1120,        599,             1268,
>    288,      682],
>           ['2006/07',  157,      1167,        ,    807,           397,
>    623],
>           ['2007/08',  139,      1110,        615,             968,
>     0,      609.4],
>           ['2008/09',  136,      0,         629,             1026,
>  366,      569.6]
>         ]);
>
>         var options = {
>           title : 'Monthly Coffee Production by Country',
>           vAxis: {title: "Cups"},
>           hAxis: {title: "Month"},
>           seriesType: "bars",
>           series: {5: {type: "line"}}
>         };
>
>         var chart = new
> google.visualization.ComboChart(document.getElementById('chart_div'));
>         chart.draw(data, options);
>       }
>       google.setOnLoadCallback(drawVisualization);
>
>
> Consider the sample array, i need to remove the empty space in the chart if 
> the value is zero. currently there is an empty space when the count is zero.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to