• Stars
    star
    1,417
  • Rank 33,205 (Top 0.7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 12 years ago
  • Updated 29 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

100% native and cool looking JavaScript gauge

gauge.js

100% native and cool looking animated JavaScript/CoffeScript gauge.

  • No images, no external CSS - pure canvas
  • No dependencies
  • Highly configurable
  • Resolution independent
  • Animated gauge value changes
  • Works in all major browsers
  • MIT License

Usage

var opts = {
  angle: 0.15, /// The span of the gauge arc
  lineWidth: 0.44, // The line thickness
  pointer: {
    length: 0.9, // Relative to gauge radius
    strokeWidth: 0.035 // The thickness
  },
  colorStart: '#6FADCF',   // Colors
  colorStop: '#8FC0DA',    // just experiment with them
  strokeColor: '#E0E0E0'   // to see which ones work best for you
};
var target = document.getElementById('foo'); // your canvas element
var gauge = new Gauge(target).setOptions(opts); // create sexy gauge!
gauge.maxValue = 3000; // set max gauge value
gauge.setMinValue(0);  // set min value
gauge.set(1250); // set actual value

For an interactive demo and a list of all supported options please refer to the project's homepage.

Wrappers

gauge.js can be wrapped to a number of frameworks. Here are some examples:

More Repositories

1

django-reservations

Django module for handling reservations/booking
Python
150
star
2

querystring-parser

QueryString parser for Python/Django that correctly handles nested dictionaries
Python
138
star
3

IrisRecognition

Old iris recognition software I made with my friend. It uses Hough and Gabor transforms to make things happen.
89
star
4

tornado-acl

Access Control List for Tornado (or just plain Python)
Python
29
star
5

embedded-graphics-framebuf

Generic framebuffer implementation in Rust for use with embedded-graphics library
Rust
26
star
6

android-django-aes

Code snippets for communication between Android(Java) device and Django(python) with AES ecrypted data
Java
20
star
7

python-media-crawler

Simple Python web crawler that looks through websites for media files (mp3, wma, aac.) and extracts their metadata
Python
19
star
8

BarcodePrinter

A simple, configurable barcode (CODE-128) PDF printer/generator
Python
11
star
9

sataddress-rs

Federated Lightning Network addresses server.
Rust
9
star
10

NeuralNetwokPerceptronKohonen

Implementation of neural networks in Java: Kohonen and Perceptron with backpropagation algorithm
Java
8
star
11

yummy-pasta

Pasta is so yummy
JavaScript
5
star
12

PyQRNativeGAE

Native python QR Code generator for Google App Engine
Python
5
star
13

embedded-graphics-sparklines

Lightweight graphs (sparklines) for use with Embedded Rust
Rust
5
star
14

OpenBciP300

Open Brain Computer Interface project using P300 paradigm
Java
5
star
15

python-num-variations-pl

Plural forms of polish words in python for Django
Python
2
star
16

BrainboyMobile

A simple app to improve your brain abilities. Inspired by BrainBoy hardware device.
Java
1
star
17

django-registration-links

A simple Django module for invite-only registration with unique access links
Python
1
star
18

python-101

Some things that are done 'pythonic' way
Python
1
star
19

select-variants.js

Variant Selector Widget
CoffeeScript
1
star