JavaScript HMTL5 Canvas indicator that shows income percentage
Using NPM for use with TypeScript/JavaScript
$ npm install eshops-indicator
<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>