# Gruff bar charts and zero data

**URL:** <https://www.ruby-forum.com/t/gruff-bar-charts-and-zero-data/150061>\
**Category:** Rails\
**Created:** [October 3, 2008, 12:43am UTC](https://www.ruby-forum.com/t/gruff-bar-charts-and-zero-data/150061 "2008-10-03T00:43:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [October 3, 2008, 12:43am UTC](https://www.ruby-forum.com/t/gruff-bar-charts-and-zero-data/150061/1 "2008-10-03T00:43:01Z")

</div>

Hi - I am creating bar and stacked bar charts in Gruff, but the problem  
I am having is that zero data is showing up as a thin bar. (It also  
seems to be that way in examples I have seen online where a zero value  
still shows as a thin bar or slice)

It’s not a major issue to see a thin sliver on a plain bar chart, but on  
my stacked bar chart if I have more than one zero value in a particular  
set then it adds beneath the x-axis.

If I am stacking many sets of data with many zero values I get a big  
block at the base of each bar beneath the axis

Ideally I would like to not display any bar for a zero value.

Is there some setting I am missing?

Thanks - david
