eshops-indicator
v1.2.34
Published
eshops indicator
Downloads
9
Readme
Indicator JS
JavaScript HMTL5 Canvas indicator that shows income percentage
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>