# Scruffy Stacked Bar help

**URL:** <https://www.ruby-forum.com/t/scruffy-stacked-bar-help/106258>\
**Category:** Ruby\
**Created:** [June 7, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/scruffy-stacked-bar-help/106258 "2007-06-07T21:40:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![catalleres](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ee59a6/32.png) [@catalleres](https://www.ruby-forum.com/u/catalleres)\
**Post date:** [June 7, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/scruffy-stacked-bar-help/106258/1 "2007-06-07T21:40:48Z")

</div>

I am trying to graph a stacked bar graph with four “fields” per bar, it  
works fine for up to three fields but when I try to add the fourth field  
I get this error:  
“/usr/local/lib/ruby/gems/1.8/gems/scruffy-0.2.2/lib/scruffy/layers/stacked.rb:71:in  
`points': undefined method`size’ for nil:NilClass (NoMethodError)”  
Anyone have any idea on how I could add the fourth field to the graph?  
Thanks.
