dojox/color/api/ColorModel (version 1.10)

Summary

API for classes that implement a color model that returns a color from a data value.

Usage

var foo = new ColorModel();
dojox/color/api/ColorModel

Method Summary

  • getColor(value) return the color for a given data value.
  • initialize(items,colorFunc) Optionally initialize the color model from a list of data items and using a function that returns the value used to compute the color for a given item.

Methods

getColor(value)

return the color for a given data value.

Parameter Type Description
value Number

The data value.

initialize(items,colorFunc)

Optionally initialize the color model from a list of data items and using a function that returns the value used to compute the color for a given item.

Parameter Type Description
items Object[]

The data items.

colorFunc Function

The function that returns the value used to compute the color for particular data item.

Error in the documentation? Can’t find what you are looking for? Let us know!