Module: plotty

The main plotty module.

Classes

plot

Methods


<static> addColorScale(name, colors, positions)

Add a new colorscale to the list of available colorscales.
Parameters:
Name Type Description
name String the name of the newly defined color scale
colors Array.<String> the array containing the colors. Each entry shall adhere to the CSS color definitions.
positions Array.<Number> the value position for each of the colors

<static> renderColorScaleToCanvas(name, canvas)

Render the colorscale to the specified canvas.
Parameters:
Name Type Description
name String the name of the color scale to render
canvas HTMLCanvasElement the canvas to render to