sn-shape
A basic shape chart supernova aimed to be used in nebula.js.
import { embed } from '@nebula.js/stardust';
import shape from '@nebula.js/sn-shape';
// 'app' is an enigma app model
const embeddable = embed(app, {
types: [{ // register the shape chart
name: 'shape',
load: () => Promise.resolve(shape);
}]
});
embeddable.render({
element,
type: 'shape',
properties: {
shape: {
type: "line",
orientation: "vertical",
style: {
width: 3,
color: {
color: "#ff00ff",
},
}
}
}
});
Requirements
Requires @nebula.js/stardust
version >=3.0.0
.
Installing
If you use npm: npm install @nebula.js/sn-shape
. You can also load through the script tag directly from any of the CDNs that supports NPM packages, for example: unpkg.
Release
To trigger a release, manually run the workflow on a release branch and set release to true. For more info on actions / github workflows see: https://github.com/qlik-oss/sn-gh-workflows/