Donut Chart

Created with Raphaƫl 2.1.2foo70%
  1. Morris.Donut({
  2. element: 'graph',
  3. data: [
  4. {value: 70, label: 'foo'},
  5. {value: 15, label: 'bar'},
  6. {value: 10, label: 'baz'},
  7. {value: 5, label: 'A really really long label'}
  8. ],
  9. formatter: function (x) { return x + "%"}
  10. }).on('click', function(i, row){
  11. console.log(i, row);
  12. });