This package has been deprecated

Author message:

this package has been deprecated

fast-plot

0.0.7 • Public • Published

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

Package Sidebar

Install

npm i fast-plot

Weekly Downloads

1

Version

0.0.7

License

ISC

Last publish

Collaborators

  • rasmushaugaard