0.0.7 • Published 8 years ago

fast-plot v0.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

fast-plot

Performant canvas plot made for live xy data.

Usage:

const fastPlot = require('fast-plot')
let ctx = document.getElementById('canvas').getContext("2d")
let data = {
	lines: [
		{x: [0,1,5,10], y: [100,70,40,10], yaxisName: "foo"},
		{x: [50,9,2,4], y: [30,60,90,100], yaxisName: "foo"}
	],
	yaxes: [
		{name: "foo", xmin: 0, xmax: 50, ymin: 10, ymax: 100}
	]
}
let options = {
	xTickCount: 7,
	yTickCount: 5
}
fastPlot(ctx, data, options)

Data:

{
	"lines": line[], //array of line objects. See below.
	"yaxes": yaxis[], //array of yaxis objects. See below.
	"xmin": number, //(optional) number. Will override all line- and yaxis provided xmin's.
	"xmax": number //(optional) number. Will increase performance.
}

Options:

{
	"xTickCount": int,
	"yTickCount": int,
	"fontSize": number,
	"partialRendering":{
		"minPointsPerPixel": number,
		"minPointsPerLine": number
	}
}
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago