Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 450 Bytes

types-and-libraries.md

File metadata and controls

25 lines (21 loc) · 450 Bytes

Custom types and libraries

/*
  Registering a library
  'default' contains a mix of c3.js and custom view renderers
*/

KeenDataviz.register('my-library', {
  'my-chart-type': {
    render: function(){},
    destroy: function(){}
  }
  //, metric: {}
  //, table: {}
});

// Then use these libraries and types
const chart = new KeenDataviz({
    type: 'my-chart-type',
    library: 'my-library'
  })
  .render({ result: 621 });