datasets = [
  ['Jimmy', [25, 36, 86, 39, 25, 31, 79, 88]],
  ['Charles', [80, 54, 67, 54, 68, 70, 90, 95]],
  ['Julie', [22, 29, 35, 38, 36, 40, 46, 57]],
  ['Jane', [95, 95, 95, 90, 85, 80, 88, 100]],
  ['Philip', [90, 34, 23, 12, 78, 89, 98, 88]],
  ["Arthur", [5, 10, 13, 11, 6, 16, 22, 32]]
];

labels = {
  0: '5/6',
  1: '5/15',
  2: '5/24',
  3: '5/30',
  4: '6/4',
  5: '6/12',
  6: '6/21',
  7: '6/28'
};

setup_basic_graph = function(type, id, size) {
  var klass = (typeof type == 'string') ? Bluff[type] : type;
  var graph = new klass(id, size);
  graph.labels = labels;
  Bluff.each(datasets, function(data) {
    graph.data(data[0], data[1]);
  });
  return graph;
};

random_array = function(size) {
  var data = [];
  while (size--) data.push(Math.round(Math.random()*100));
  return data;
};
