eshops-indicator
TypeScript icon, indicating that this package has built-in type declarations

1.2.34 • Public • Published

Indicator JS

JavaScript HMTL5 Canvas indicator that shows income percentage Example

Installation

Using NPM for use with TypeScript/JavaScript

$ npm install eshops-indicator

Getting started

<canvas id="barack-indicator" width="200"></canvas>


<script src="dist/bundle.js"></script>
<script type="text/javascript">
    var indicatorCanvas = document.getElementById("barack-indicator");

    var indicator = new EshopsIndicator(indicatorCanvas, {
        current: "-150",
        previous: "400",
        title: "Barack Obama",
    });

    indicator.draw();
</script>

Readme

Keywords

Package Sidebar

Install

npm i eshops-indicator

Weekly Downloads

5

Version

1.2.34

License

MIT

Unpacked Size

109 kB

Total Files

26

Last publish

Collaborators

  • gebeto