Allocation Graph
Table of contents
Installation
NPM
npm i @ppci-mock/allocation-graph
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci-mock/allocation-graph'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/allocation-graph/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci-mock/allocation-graph/builds/legacy.min.js" />
<!-- Component -->
<allocation-graph
deviceId=${String}
direction=${String}
></allocation-graph>
Properties
Property | Type | Description | Possible Values |
*deviceId* | String | Show data for this device | |
*direction* | String | Data direction | usage/delivery |