donatj/ticker-graph

This package is abandoned and no longer maintained. No replacement package was suggested.

Simple JavaScript Ticker Graph using the Quorum JS Installer

Installs: 62 468

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 2

Open Issues: 1

Language:TypeScript

Type:quorum-js

v0.3.0 2020-05-19 16:46 UTC

This package is auto-updated.

Last update: 2024-11-04 02:34:32 UTC


README

npm version

Simple JavaScript Real Time "Ticker Graph"

Requires no external libraries. It is require-able with RequireJS but RequireJS is by no means required.

Dead simple, should work in any browser that supports the <canvas> tag.

Here are some more examples.

Features

  • Auto Scales to min and max values.
  • Color set-able per column via callback.

Dead Simple Example

To output a simple sine wave like so: Small Ticker Sine Wave Example

<script src="src/TickerGraph.js"></script>
<canvas id="cv" width="100" height="40"></canvas>
<script>
	var t = new TickerGraph( document.getElementById("cv") );
	var i = 0;
	setInterval(function(){
		t.push( Math.sin(i++ / 10) );
	}, 20);
</script>