JSDoc: Module: noop.chart

noop.chart

NOOP Chart module.
Version:
  • 0.100
Author:
  • cisco211
Source:

Methods

(static) pie(selectors, data, color)

Pie chart.

Parameters:
Name Type Description
selectors string CSS selectors to apply this chart on.
data Array.<number> An array of data numbers.
color Array.<string> An array of color strings.
Source:
Example
noop.chart.pie('canvas#pie', [17, 32, 52], ['red', 'blue', 'green']);

(static) pieImage(data, color) → {string}

Pie chart as image.

Parameters:
Name Type Description
data Array.<number> An array of data numbers.
color Array.<string> An array of color strings.
Source:
Returns:
dataURL - An image data URL string.
Type
string
Example
var dataURL = noop.chart.pieImage([17, 32, 52], ['red', 'blue', 'green']);