<commit_before># jquery.gauge [![Build Status](https://travis-ci.org/swehacker/jquery.gauge.svg)](https://travis-ci.org/swehacker/jquery.gauge) [![Issues](http://img.shields.io/github/issues/swehacker/jquery.gauge.svg)]( https://github.com/swehacker/jquery.gauge/issues )
A simple gauge.

## Installation

Include script *after* the jQuery library (unless you are packaging scripts somehow else):

```html
<script src="/path/to/jquery.gauge.js"></script>
```

**Do not include the script directly from GitHub (http://raw.github.com/...).** The file is being served as text/plain and as such being blocked
in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.

## Usage

Create a canvas in where you want to place your gauge:

```html
<canvas id="myGauge" width="300" height="300">
```

And in between script tag lookup the canvas and use gauge(value)
```javascript
$("#myGauge").gauge(70);
```

### Options
Key | Default | Description
----|---------|------------
min | 0 | Minimum value, e.g temperature from -120 celsius
max | 100 | Maximum value to display
unit | % | Unit to be displayed after the value
font | 50px verdana | Font to be used for the values
color |  lightgreen | Color for the value and bar<commit_msg>Updated the manual<commit_after># jquery.gauge [![Build Status](https://travis-ci.org/swehacker/jquery.gauge.svg)](https://travis-ci.org/swehacker/jquery.gauge) [![Issues](http://img.shields.io/github/issues/swehacker/jquery.gauge.svg)]( https://github.com/swehacker/jquery.gauge/issues )
A simple gauge.

## Installation

Include script *after* the jQuery library (unless you are packaging scripts somehow else):

```html
<script src="/path/to/jquery.gauge.js"></script>
```

**Do not include the script directly from GitHub (http://raw.github.com/...).** The file is being served as text/plain and as such being blocked
in Internet Explorer on Windows 7 for instance (because of the wrong MIME type). Bottom line: GitHub is not a CDN.

## Usage

Create a canvas in where you want to place your gauge:

```html
<canvas id="myGauge" width="300" height="300">
```

And in between script tag lookup the canvas and use gauge(value)
```javascript
$("#myGauge").gauge(70);
```

### Options
Key | Default | Description
----|---------|------------
type| default | Type of gauge: default or halfcircle
min | 0 | Minimum value, e.g temperature from -120 celsius
max | 100 | Maximum value to display
unit | % | Unit to be displayed after the value
font | 50px verdana | Font to be used for the values
color |  lightgreen | Color for the value and bar
{'fraction_non_alphanumeric': 0.14759725400457666, 'fraction_numerical': 0.013729977116704805, 'mean_word_length': 4.063706563706564, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '998568', 'n_tokens_mistral': 840, 'n_tokens_neox': 757, 'n_words': 295}