A byte mode for jQuery Flot plot axes
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintrc
.travis.yml
CLA.md
MIT-LICENSE.txt
README.md
jquery.flot.byte.js
package.json

README.md

Byte mode plugin for jQuery Flot

Build Status

About

This is a plugin for the jQuery powered Flot plotting library. It's goal is to make it easy to manage and display byte values on a chart. It uses labels everything as binary multiples rather than decimal figures (ie: GiB rather than GB).

This is developed by Whatbox Inc. for internal use and released as on Open Source project under the MIT license. Patches and bug reports are welcome, please see CLA.md.

Dependencies

The following packages are necessary for this module.

Usage

The usage integrates in the same way as the native flot plugins, such as jquery.flot.time.

yaxis: {
	min: 0, 
	mode: "byte", 
	axisLabel: "Bytes of data"
}

Similarly, when expressing transfer rates, such as MiB/s.

yaxis: {
	min: 0, 
	mode: "byteRate", 
	axisLabel: "Transfer rate"
}