Giter VIP home page Giter VIP logo

gauges's Introduction

Guages

Drawing Gauges with Canvas

	<div class='gauge' data-min='0' data-max='8'  data-set="0,2.8,5.3,8" data-set-color="#00ff00,#ffff00,#ff0000" data-labels='0.0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0' data-value='3.46' data-valuetype='p' data-label="Cost Per page" width='250px' height='250px'></div>
	<div class='gauge' data-min='0' data-max='11'  data-set="0,3.6,7.4,11" data-set-color="#ff0000,#00ff00,#ff0000" data-labels='0,5.5,11' data-value='0.9' data-valuetype='%' data-label="Utilisation" width='250px' height='250px'></div>
	<br>
	<div class='gauge' data-min='0' data-max='100'  data-set="0,34,67,100" data-set-color="#ff0000,#ffff00,#00ff00" data-labels='0,13,25,38,50,63,75,88,100' data-value='29.9' data-valuetype='%' data-label="Connectivity" width='250px' height='250px'></div>
	<div class='gauge' data-min='0' data-max='42'  data-set="0,7,11,16,35,42" data-set-color="#ff0000,#ffff00,#00ff00,#ffff00,#ff0000" data-labels='0,14,28,42' data-value='41' data-valuetype='' data-label="Users:Device" width='250px' height='250px'></div>
	<script src='gauge.js' ></script>
	<script>
		var els = document.getElementsByClassName('gauge');
		for (var index=0;index<els.length;index++){
		 	Gauge.register(els[index]);
		}
		Gauge.Redraw();
	</script>
	

gauges's People

Contributors

adrian-sweeney avatar irishado avatar

Watchers

Salesman avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.