       data: {label: 'Group ' + gidx}
            };
          }
          gmax += 4;
          gmax %= 30;
        }
        if (++group.length >= gmax || i == count-1) {
          gidx++;
          if (nestedData) {
            nestedData.push(data);
            data = [];
          } else {
            group.data.length = group.length;
          }
        }
      }
      this.data = nestedData || data;
      this.groups = groups;
    }
  });
})();  
</script>
</polymer-element>

<