block by gka 2255896

API for dead simple line charts (based on raphael and d3)

var data = { 
   a: [1,2,3,2,2,3,4,5,6],
   b: [5,3,2,3,5,null,2,1,1,2]
};

linechart.create({
   container: '#chart',
   size: [500,300],
   data: data,  // lots of numbers
   labels: { a: 'Foo', b: 'Bar' },  // give the data rows some meaning
   format: function(n) { return n+'%' }  // define how numbers look on axis and tooltips
})