Class Index | File Index

Classes


Namespace pv.Colors

A collection of standard color palettes for categorical encoding.
Defined in: Colors.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
A collection of standard color palettes for categorical encoding.
Method Summary
Method Attributes Method Name and Description
<static>  
pv.Colors.category10()
Returns a new 10-color scheme.
<static>  
pv.Colors.category19()
Returns a new alternative 19-color scheme.
<static>  
pv.Colors.category20()
Returns a new 20-color scheme.
Namespace Detail
pv.Colors
A collection of standard color palettes for categorical encoding.
Method Detail
<static> {pv.Scale.ordinal} pv.Colors.category10()
Returns a new 10-color scheme. The arguments to this constructor are optional, and equivalent to calling pv.Scale.OrdinalScale#domain. The following colors are used:
#1f77b4
#ff7f0e
#2ca02c
#d62728
#9467bd
#8c564b
#e377c2
#7f7f7f
#bcbd22
#17becf
Parameters:
{number...} domain...
domain values.
Returns:
{pv.Scale.ordinal} a new ordinal color scale.
See:
pv.color

<static> {pv.Scale.ordinal} pv.Colors.category19()
Returns a new alternative 19-color scheme. The arguments to this constructor are optional, and equivalent to calling pv.Scale.OrdinalScale#domain. The following colors are used:
#9c9ede
#7375b5
#4a5584
#cedb9c
#b5cf6b
#8ca252
#637939
#e7cb94
#e7ba52
#bd9e39
#8c6d31
#e7969c
#d6616b
#ad494a
#843c39
#de9ed6
#ce6dbd
#a55194
#7b4173
Parameters:
{number...} domain...
domain values.
Returns:
{pv.Scale.ordinal} a new ordinal color scale.
See:
pv.color

<static> {pv.Scale.ordinal} pv.Colors.category20()
Returns a new 20-color scheme. The arguments to this constructor are optional, and equivalent to calling pv.Scale.OrdinalScale#domain. The following colors are used:
#1f77b4
#aec7e8
#ff7f0e
#ffbb78
#2ca02c
#98df8a
#d62728
#ff9896
#9467bd
#c5b0d5
#8c564b
#c49c94
#e377c2
#f7b6d2
#7f7f7f
#c7c7c7
#bcbd22
#dbdb8d
#17becf
#9edae5
Parameters:
{number...} domain...
domain values.
Returns:
{pv.Scale.ordinal} a new ordinal color scale.
See:
pv.color

Documentation generated by JsDoc Toolkit 2.3.2 on Fri May 28 2010 10:13:27 GMT-0700 (PDT)