Skip to content

whatbox/jquery.flot.byte

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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).

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"
}

By default, this plugin will format using base 2 where 1 KiB = 1024 bytes, to change to base 1000 where 1 kB = 1000 bytes, you can specify a base.

yaxis: {
	mode: "byte",
	base: 10
}

About

A byte mode for jQuery Flot plot axes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published