Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 998 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 998 Bytes

sn-mekko-chart

CircleCI Coverage Status

A basic mekko chart supernova aimed to be used in nebula.js.

mekko chart preview

Installing

If you use npm: npm install @nebula.js/sn-mekko-chart. You can also load through the script tag directly from https://unpkg.com.

Usage

import nucleus from '@nebula.js/nucleus';
import mekko from '@nebula.js/sn-mekko-chart';

// 'app' is an enigma app model
const nuked = nucleus(app, {
  types: [{ // register the mekko chart
    name: 'mekko',
    load: () => Promise.resolve(mekko);
  }]
});

nuked.create({
  type: 'mekko',
}, {
  element
});

See full example