Class: ColorPalette

ColorPalette

new epiviz.ui.charts.ColorPalette(colors, name, id, keyIndices)

ui/charts/color-palette.js, line 16
Name Type Description
colors Array.<string>
name string optional
id string optional
keyIndices Object.<(string|number), number> optional

Methods

staticepiviz.ui.charts.ColorPalette.fromRawObject(o, config){epiviz.ui.charts.ColorPalette}

ui/charts/color-palette.js, line 136
Name Type Description
o Array.<string> | Object
config epiviz.Config optional
Returns:
Type Description
epiviz.ui.charts.ColorPalette

copy(){epiviz.ui.charts.ColorPalette}

ui/charts/color-palette.js, line 116
Returns:
Type Description
epiviz.ui.charts.ColorPalette

equals(other){boolean}

ui/charts/color-palette.js, line 106
Name Type Description
other epiviz.ui.charts.ColorPalette
Returns:
Type Description
boolean

get(i){string}

ui/charts/color-palette.js, line 62
Name Type Description
i number
Returns:
Type Description
string A color corresponding to the index i

getByKey(key){string}

ui/charts/color-palette.js, line 70
Name Type Description
key string | number
Returns:
Type Description
string

id(){string}

ui/charts/color-palette.js, line 51
Returns:
Type Description
string

keyColorIndex(key){number}

ui/charts/color-palette.js, line 84
Name Type Description
key string
Returns:
Type Description
number

keyIndices(){Object.<(string|number), number>}

ui/charts/color-palette.js, line 93
Returns:
Type Description
Object.<(string|number), number>

name(){string}

ui/charts/color-palette.js, line 56
Returns:
Type Description
string

raw(config){Object}

ui/charts/color-palette.js, line 124
Name Type Description
config epiviz.Config optional
Returns:
Type Description
Object

size(){Number}

ui/charts/color-palette.js, line 98
Returns:
Type Description
Number The number of colors contained in this palette
comments powered by Disqus