@nebula.js/sn-shape

1.1.3 • Public • Published

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/

Dependencies (0)

    Dev Dependencies (38)

    Package Sidebar

    Install

    npm i @nebula.js/sn-shape

    Weekly Downloads

    121

    Version

    1.1.3

    License

    MIT

    Unpacked Size

    328 kB

    Total Files

    13

    Last publish

    Collaborators

    • nilzona_user
    • niekvanstaveren
    • likang6688
    • ccm33
    • qlikossbuild
    • veinfors
    • tobias-astrom-qlik