Model Index

Types By Namespace

cdo

def

pvc

pvc.data

pvc.options

pvc.options.axes

pvc.options.charts

pvc.options.ext

pvc.options.format

pvc.options.marks

pvc.options.panels

pvc.options.plots

pvc.options.varia

pvc.options.visualRoles

pvc.visual

Class pvc.options.axes.SunburstColorAxis


Extends ColorAxis.

Class Summary
Constructor Attributes Constructor Name and Description
 
The options documentation class of the Sunburst discrete color axis.
Field Summary
Field Attributes Field Name and Description
 
Indicates if the color map used in the first render is to be preserved, regardless of having been explicitly specified through #map or inferred from #colors.
Discrete > Scale
 
map
Allows reserving colors to certain color scale keys.
 
How much a last sibling slice will be brighter than a first sibling slice.
 
The minimum color alpha channel value.
 
How much the color alpha channel is decremented per slice level, relative to the alpha of the base color.
Scale
 
The colors of a color axis.
 
The color to use when an optional color role is unbound.
Method Summary
Method Attributes Method Name and Description
Scale
 
transform(color)
The color transform function.
Class Detail
pvc.options.axes.SunburstColorAxis
The options documentation class of the Sunburst discrete color axis.

See ColorAxis for additional information.

Field Detail
{boolean} preserveMap
Indicates if the color map used in the first render is to be preserved, regardless of having been explicitly specified through #map or inferred from #colors.
Default Value:
false

{map(string : pvc.options.varia.ColorString|pv.Color)} map
Allows reserving colors to certain color scale keys.

Color scale keys are the values of the color role. By default, the color role is bound to the dimensions of the series role. Color scale keys that are not mapped, receive colors taken from #colors. Colors in #colors that are also present in the color map are ignored.

Assuming the color role is bound to the grouping "territory, country", the following map would reserve the colors red and green to Canada and Portugal, respectively:

chartOptions.colorMap = {
    "NA~Canada":     "red",
    "EMEA~Portugal": "green"
};
                

Assumes that the default pvc.options.charts.BasicChart#dataSeparator is used.


{number} sliceBrightnessFactor
How much a last sibling slice will be brighter than a first sibling slice.

Only applies when pvc.options.plots.SunburstPlot#colorMode is pvc.options.varia.SunburstColorMode#Fan.

A non-negative number.

Specify 0 for siblings to have the same color.

Default Value:
1

{number} sliceLevelAlphaMin
The minimum color alpha channel value.

Only applies when pvc.options.plots.SunburstPlot#colorMode is pvc.options.varia.SunburstColorMode#Level.

A number between 0 and 1.

Default Value:
0.1

{number} sliceLevelAlphaRatio
How much the color alpha channel is decremented per slice level, relative to the alpha of the base color.

Only applies when pvc.options.plots.SunburstPlot#colorMode is pvc.options.varia.SunburstColorMode#Level.

A number between 0 and 1.

The resulting alpha value is still restricted to be greater than the value of SunburstColorAxis#sliceLevelAlphaMin.

Specify 0 for levels to have the same color.

Default Value:
0.15

{pvc.options.varia.ColorString|pv.Color|list(pvc.options.varia.ColorString|pv.Color)|function} colors
The colors of a color axis.

It can be a single color as documented in pvc.options.varia.ColorString or a single protovis color object (like: pv.color('red') or pv.Color.names.blueviolet).

Additionally, an array of color strings or protovis colors can be specified.

If a function is specified, it can be:

The default color scheme depends on the axis domain being discrete or numeric.

For discrete domains, the default value is the protovis category10 color scheme:

  1. value
  2. value
  3. value
  4. value
  5. value
  6. value
  7. value
  8. value
  9. value
  10. value

For numeric domains, the default value is the color scheme:

  1. value
  2. value
  3. value
Borrowed from:
ColorAxis

{pvc.options.varia.ColorString|pv.Color} unbound
The color to use when an optional color role is unbound.

When a color role is optional and was not specified, but color is still required to show visual elements, this property allows specifying the color with which all visual elements' color attributes will be based on.

The default value is the first color in #colors.

Contrast this option with AnyColorAxis#missing and HeatGridColorAxis#missing.

Borrowed from:
ColorAxis
Method Detail
{pv.Color} transform(color)
The color transform function.

Allows applying an effect to the colors that an axis outputs.

The default value is null except for color axes that are used only by one of the trend or plot2 plots, and whose colors property was not specified. In these cases, the default value is pvc.brighterColorTransform.

Context:
{null}
Arguments:
{pv.Color} color
The color to transform.
Returns:
{pv.Color} The transformed color.
Borrowed from:
ColorAxis

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Dec 20 2018 15:47:40 GMT-0000 (WET)