0.3.0 • Published 4 years ago

ticker-graph v0.3.0

Weekly downloads
181
License
MIT
Repository
github
Last release
4 years ago

TickerGraph

npm version

Ticker Image Example

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>
0.3.0

4 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

7 years ago