Socket
Book a DemoInstallSign in
Socket

ticker-graph

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ticker-graph

Simple Ticker Graph

0.3.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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>

Keywords

Ticker

FAQs

Package last updated on 19 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.