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.charts.BulletChart


Extends BasicChart.

Class Summary
Constructor Attributes Constructor Name and Description
 
The options documentation class of the Bullet chart.
Field Summary
Field Attributes Field Name and Description
Chart
 
The extension points object contains style definitions for the marks of the chart.
Chart > Data
 
An array of dimensions calculations.
 
A map whose keys are the dimension type group names and whose values are the default dimension type group options.
 
A map whose keys are the dimension type names and whose values are the dimension type options.
 
The chart's format provider.
 
The separator used to join the labels of the values of a multi-dimensional visual role.
 
Indicates if datums whose value in every measure dimension is null are ignored.
Chart > Data Source
 
Indicates if the data source is in the crosstab format, or, when false, the relational format.
 
The number of columns of the "categories" physical group that the data source contains.
 
Indicates if the data source translation should ignore the column labels present in the data source's metadata as defaults for the labels of dimensions that are directly loaded from those columns.
 
Indicates if multiple measures "are in" columns or in rows (applies to crosstab data format).
 
The separator character used to join multiple values in the crosstab format, and to build composite keys for multiple level groupings.
 
The confirmation mode of the column types declared in a dataset's metadata.
 
Indicates if the data source contains multiple columns of the "measures" physical group.
 
The indexes of columns of the "measures" physical group (applies to relational data format).
 
A list of dimension names to load from corresponding logical table columns.
 
Swaps the columns of the "series" and "categories" physical groups.
Chart > General
 
The identifier of the HTML element, or the element itself, where the chart is to be created in.
 
The set of compatibility flags.
 
The CCC version that the chart should run in.
Chart > Interaction
 
Indicates if the chart is clickable by the user.
<deprecated>  
Indicates if tooltips are enabled and contains additional tooltip presentation options.
<deprecated>  
Contains additional tooltip presentation options.
 
Indicates if tooltips are enabled and contains additional tooltip presentation options.
Chart > Layout
 
The margins of the root content panel, in pixel units or as a percentage.
 
The paddings of the root content panel, in pixel units or as a percentage.
 
The height of the root chart, in pixels.
 
The margins of the root chart.
 
The chart orientation indicates if its main direction is vertical or horizontal.
 
The paddings of the root chart.
 
The width of the root chart, in pixels.
Chart > Visual Roles
 
The dataPart visual role is a chart-level visual role that allows partitioning of the data into several datum subsets.
 
The marker visual role is a plot-level visual role that represents a set of reference or target values for a given title and sub-title categories, and is visually encoded by the positions of markers/dots along the bullet's axis.
 
The range visual role is a plot-level visual role that represents classification threshold values of the value visual role.
 
The subTitle visual role is a plot-level visual role that represents the sub-title of each bullet.
 
The title visual role is a plot-level visual role that represents the title of each bullet.
 
The value visual role is a plot-level visual role that represents the main measure under analysis, for a given title and sub-title categories, and is visually encoded by the length of a bar visual element.
 
The chart's visual roles map.
Layout
 
The minimum size of the plot panel, in pixel units.
Panels
 
The title panel of the root chart.
Plots
 
The bullet plot.
 
An array of plots.
Method Summary
Method Attributes Method Name and Description
Chart > Actions
 
A callback function that is called when the user double-clicks on a bullet's title or sub-title.
 
clickAction(title, subtitle, measures, ev)
A callback function that is called when the user clicks on a visual element.
 
A callback function that is called before the chart is rendered, but after if has been pre-rendered.
 
A callback function that is called after the chart has finished rendering, including any animations.
Chart > Data
 
valueFormat(value)
A function that formats the non-null values of numeric dimensions.
Chart > Data Source
 
dataWhere(datum)
A function that filters datums as they are being loading.
Class Detail
pvc.options.charts.BulletChart
The options documentation class of the Bullet chart.

This chart type was only partially updated, to support some of the new CCC v.2 features.

Default Data Format

For general information on the supported data formats see BasicChart.

Note that, unlike most chart types, the bullet chart has a default #dataTypeCheckingMode of pvc.options.varia.DataTypeCheckingMode#Extended.

Also, the bullet chart employs a non-default logical row to dimensions mapping:

  1. The first free discrete column of the logical table generates and loads the "title" dimension, if free.
  2. The second free discrete column of the logical table generates and loads the "subTitle" dimension, if free.
  3. Free continuous columns of the logical table generate and load, in order, skipping the dimension when not-free, the following numeric dimensions:
    1. value
    2. marker
    3. range
    4. range2
    5. range3
    6. ...

All the following are possible default layouts and dimension assignments:

Index 0
Dimension value
DataType number
Index 0 1
Dimension value marker
DataType number number
Index 0 1
Dimension title value
DataType string number
Index 0 1 2
Dimension title subTitle value
DataType string string number
Index 0 1 2
Dimension title value marker
DataType string number number
Index 0 1 2 3
Dimension title value marker range
DataType string number number number
Index 0 1 2 3 4
Dimension title subTitle value marker range
DataType string string number number number
Index 0 1 2 3 4 5
Dimension title subTitle value marker range range2
DataType string string number number number number

To use the bullet chart's visual roles in its most general form, it is required to manually configure the data translator, by using #readers (e.g. "title, value, value2, value3, marker, range, range2, range3").

Field Detail
{pvc.options.ext.BulletChartExtensionPoints} extensionPoints
The extension points object contains style definitions for the marks of the chart.

{list(pvc.options.DimensionsCalculation)} calculations
An array of dimensions calculations.

Can be specified to calculate the values of certain dimensions.

Borrowed from:
BasicChart

{map(string : pvc.options.DimensionType)} dimensionGroups
A map whose keys are the dimension type group names and whose values are the default dimension type group options.

A dimension type group is a group of dimension types that have a common non-numeric prefix in its name.

This property does not define any dimension types, per si, but allows specifying default values for dimension types of a group, that apply in case they are effectively used.

Borrowed from:
BasicChart

{map(string : pvc.options.DimensionType)} dimensions
A map whose keys are the dimension type names and whose values are the dimension type options.

You don't need to define dimensions unless you want to change their name or properties. Charts automatically define default dimensions to satisfy their visual roles' requirements.

Dimension options can be partial, so that it is possible to override only certain options.

Borrowed from:
BasicChart

{pvc.options.format.FormatProvider} format
The chart's format provider.
Borrowed from:
BasicChart

{string} groupedLabelSep
The separator used to join the labels of the values of a multi-dimensional visual role.

For example, if a visual role, has the dimensions "Territory" and "ProductType", a compound value could be shown as "EMEA ~ Classic Cars".

See also #dataSeparator.

Default Value:
' ~ '
Borrowed from:
BasicChart

{boolean} ignoreNulls
Indicates if datums whose value in every measure dimension is null are ignored.

A dimension is considered a measure dimension if there is at least one measure visual role currently bound to it.

Default Value:
true
Borrowed from:
BasicChart

{boolean} crosstabMode
Indicates if the data source is in the crosstab format, or, when false, the relational format.
Default Value:
true
Borrowed from:
BasicChart

{number} dataCategoriesCount
The number of columns of the "categories" physical group that the data source contains.

Relational format

Allows splitting the discrete columns between the "series" and "category" physical groups, in a custom way.

By default, if only a single discrete column exists, it is a "category". Otherwise, the first column is a "series" column and all the remaining are "category" columns.

Crosstab format

This is taken to be the number of consecutive discrete columns, from the first, or 1, if there are none.
Borrowed from:
BasicChart

{boolean} dataIgnoreMetadataLabels
Indicates if the data source translation should ignore the column labels present in the data source's metadata as defaults for the labels of dimensions that are directly loaded from those columns.

The capability to use the data source's provided metadata labels is most useful in the relational format, i.e., when #crosstabMode is false. The crosstab format does not provide metadata information for the series/columns data. Also, only when both #isMultiValued and #dataMeasuresInColumns are true, is there label information for the measures metadata.

Default Value:
false
Borrowed from:
BasicChart

{boolean} dataMeasuresInColumns
Indicates if multiple measures "are in" columns or in rows (applies to crosstab data format).

This option only applies when #isMultiValued is true.

When true, the data source contains columns for each combination of "series" columns' values and measure dimension.

When false, the data source contains rows for each combination of "categories" columns' values and measure dimension.

Borrowed from:
BasicChart

{string} dataSeparator
The separator character used to join multiple values in the crosstab format, and to build composite keys for multiple level groupings.

See also #groupedLabelSep.

Default Value:
'~'
Borrowed from:
BasicChart

{pvc.options.varia.DataTypeCheckingMode} dataTypeCheckingMode
The confirmation mode of the column types declared in a dataset's metadata.

The default value depends on the chart type. The bullet chart type has a default of pvc.options.varia.DataTypeCheckingMode#Extended. All other chart types have a default of pvc.options.varia.DataTypeCheckingMode#Minimum.

Data type checking can be disabled by specifying the value pvc.options.varia.DataTypeCheckingMode#None.

Borrowed from:
BasicChart

{boolean} isMultiValued
Indicates if the data source contains multiple columns of the "measures" physical group.

Relational format

Controls whether the option #measuresIndexes applies.

Crosstab format

Depending on the value of #dataMeasuresInColumns, measures are either in columns or in rows.
Default Value:
false
Borrowed from:
BasicChart

{number|string|list(number|string)} measuresIndexes
The indexes of columns of the "measures" physical group (applies to relational data format).

This option only applies when #isMultiValued is true.

By default, these are the indexes of continuous columns.

Borrowed from:
BasicChart

{string|list(pvc.options.DimensionsReader)} readers
A list of dimension names to load from corresponding logical table columns.

Can be a string containing a comma separated list of dimension names.

More generally, this option accepts an array of dimensions readers.

Borrowed from:
BasicChart

{boolean} seriesInRows
Swaps the columns of the "series" and "categories" physical groups.

The name of this option is inspired in the crosstab/ matrix format, where the "series" values are placed in the first row, and "category" values are placed in the first column (corner cell is empty).

Default Value:
false
Borrowed from:
BasicChart

{string|object} canvas
The identifier of the HTML element, or the element itself, where the chart is to be created in.

The chart element will be a child of the canvas element.

When unspecified, the chart element will be added as the last child of the HTML document body.

Borrowed from:
BasicChart

{pvc.options.varia.CompatibilityFlags} compatFlags
The set of compatibility flags.

See also BasicChart#compatVersion.

Borrowed from:
BasicChart

{number} compatVersion
The CCC version that the chart should run in.

The value 1 emulates version 1 of CCC.

See also BasicChart#compatFlags.

Default Value:
Infinity
Borrowed from:
BasicChart

{boolean} clickable
Indicates if the chart is clickable by the user.

If this option is false, any click-related actions will not be executed (ex: #clickAction, Chart#doubleClickAction, or pvc.options.axes.DiscreteCartesianAxis#clickAction).

Default Value:
false
Borrowed from:
BasicChart

<deprecated> {boolean} showTooltips
Indicates if tooltips are enabled and contains additional tooltip presentation options.
Deprecated:
Use #tooltip instead.
Borrowed from:
BasicChart

<deprecated> {pvc.options.Tooltip} tipsySettings
Contains additional tooltip presentation options.
Deprecated:
Use #tooltip instead.
Borrowed from:
BasicChart

{pvc.options.Tooltip} tooltip
Indicates if tooltips are enabled and contains additional tooltip presentation options.
Borrowed from:
BasicChart

{number|string|pvc.options.varia.Sides} contentMargins
The margins of the root content panel, in pixel units or as a percentage.

In a small multiples chart, the margins of the content panel of a small chart can be set with the property smallContentMargins.

See pvc.options.varia.Sides for information about the different supported data types.

Default Value:
0
Borrowed from:
BasicChart

{number|string|pvc.options.varia.Sides} contentPaddings
The paddings of the root content panel, in pixel units or as a percentage.

In a small multiples chart, the paddings of the content panel of a small chart can be set with the property smallContentPaddings.

See pvc.options.varia.Sides for information about the different supported data types.

Default Value:
0
Borrowed from:
BasicChart

{number} height
The height of the root chart, in pixels.
Default Value:
300
Borrowed from:
BasicChart

{number|string|pvc.options.varia.Sides} margins
The margins of the root chart.

In a small multiples chart, the margins of the small charts can be set with the property smallMargins.

See pvc.options.varia.Sides for information about the different supported data types.

Default Value:
3
Borrowed from:
BasicChart

{pvc.options.varia.ChartOrientation} orientation
The chart orientation indicates if its main direction is vertical or horizontal.

This property is supported by most chart types.

Default Value:
'vertical'
Borrowed from:
BasicChart

{number|string|pvc.options.varia.Sides} paddings
The paddings of the root chart.

In a small multiples chart, the paddings of a small chart can be set with the property smallPaddings.

See pvc.options.varia.Sides for information about the different supported data types.

Default Value:
0
Borrowed from:
BasicChart

{number} width
The width of the root chart, in pixels.
Default Value:
400
Borrowed from:
BasicChart

{string|pvc.options.VisualRole} dataPartRole
The dataPart visual role is a chart-level visual role that allows partitioning of the data into several datum subsets.

This is a shortcut property for pvc.options.visualRoles.BasicChartVisualRoles#dataPart.

Borrowed from:
BasicChart

{string|pvc.options.VisualRole} markerRole
The marker visual role is a plot-level visual role that represents a set of reference or target values for a given title and sub-title categories, and is visually encoded by the positions of markers/dots along the bullet's axis.

This is a shortcut property for the main plot's pvc.options.visualRoles.BulletPlotVisualRoles#marker.


{string|pvc.options.VisualRole} rangeRole
The range visual role is a plot-level visual role that represents classification threshold values of the value visual role.

This is a shortcut property for the main plot's pvc.options.visualRoles.BulletPlotVisualRoles#range.


{string|pvc.options.VisualRole} subTitleRole
The subTitle visual role is a plot-level visual role that represents the sub-title of each bullet.

This is a shortcut property for the main plot's pvc.options.visualRoles.BulletPlotVisualRoles#subTitle.


{string|pvc.options.VisualRole} titleRole
The title visual role is a plot-level visual role that represents the title of each bullet.

This is a shortcut property for the main plot's pvc.options.visualRoles.BulletPlotVisualRoles#title.


{string|pvc.options.VisualRole} valueRole
The value visual role is a plot-level visual role that represents the main measure under analysis, for a given title and sub-title categories, and is visually encoded by the length of a bar visual element.

This is a shortcut property for the main plot's pvc.options.visualRoles.BulletPlotVisualRoles#value.


{map(string : pvc.options.VisualRole)|pvc.options.visualRoles.BasicChartVisualRoles} visualRoles
The chart's visual roles map.

Besides the existing visual role properties - named after the visual role's name followed by the word Role - the visual roles map can be used, in code, to specify the visual roles information. The visual role name is the map's key, and the value, its options.

Borrowed from:
BasicChart

{number|string|pvc.options.varia.Size} plotSizeMin
The minimum size of the plot panel, in pixel units. If a percentage is specified, this option is ignored.

To determine the actual minimum size of the plot panel, the chart takes into account other restrictions imposed by options such as: pvc.options.axes.DiscreteCartesianAxis#bandSize, pvc.options.axes.DiscreteCartesianAxis#bandSizeMin, pvc.options.axes.DiscreteCartesianAxis#bandSpacing and pvc.options.axes.DiscreteCartesianAxis#bandSpacingMin.

In a small multiples chart, this option is ignored.

See pvc.options.varia.Size for information about the different supported data types.

Borrowed from:
BasicChart

{string|pvc.options.panels.ChartTitlePanel} title
The title panel of the root chart.

When a value of type string is specified, it is the title text.

Borrowed from:
BasicChart

{pvc.options.plots.BulletPlot} bullet
The bullet plot.

{list(pvc.options.plots.Plot)} plots
An array of plots.

Can be specified to configure the options of the chart's internal plots (like main and plot2 and trend, when supported by the chart type), or to define and configure extra plots, of compatible types.

The types of plots that can be used together in a chart depend on:

For additional information, specific of each chart type, see its documentation for property plots.

Borrowed from:
BasicChart
Method Detail
{undefined} axisDoubleClickAction(datum, ev)
A callback function that is called when the user double-clicks on a bullet's title or sub-title.
Arguments:
{object} datum
An object describing the data of the double-clicked bullet. The object has the following properties:
  • title
  • formattedTitle
  • subtitle
  • formattedSubtitle
  • ranges
  • formattedRanges
  • measures
  • formattedMeasures
  • markers
  • formattedMarkers
{HTMLDOMEvent} ev
The HTML DOM event object
Returns:
{undefined}

{undefined} clickAction(title, subtitle, measures, ev)
A callback function that is called when the user clicks on a visual element.
Arguments:
{string} title
The title.
{string} subtitle
The sub-title.
{list(string)} measures
The array of measures.
{HTMLDOMEvent} ev
The HTML DOM event object
Returns:
{undefined}

{undefined} renderCallback(scene)
A callback function that is called before the chart is rendered, but after if has been pre-rendered.

You can use this action to:

Context:
{pvc.visual.Context}
Arguments:
{pvc.visual.Scene} scene
The scene associated with the visual item.
Returns:
{undefined}
Borrowed from:
BasicChart

{undefined} renderedCallback(scene)
A callback function that is called after the chart has finished rendering, including any animations.
Context:
{pvc.visual.Context}
Arguments:
{pvc.visual.Scene} scene
The scene associated with the visual item.
Returns:
{undefined}
Borrowed from:
BasicChart

{string!} valueFormat(value)
A function that formats the non-null values of numeric dimensions.

When this property is specified, it sets also the pvc.options.format.FormatProvider#number format of the chart's format provider, BasicChart#format. Consequently, its value is inherited by the number dimension types' pvc.options.DimensionType#format.

Conversely, if the chart's format provider pvc.options.format.FormatProvider#number format is specified, its value sets this property, BasicChart#valueFormat.

When both are specified, the one in the chart's format provider has precedence.

Note: in a previous CCC version this property applied only to dimensions named value, value2, etc. It now applies to any numeric dimensions.

Context:
{null}
Arguments:
{number!} value
The non-null number to format.
Returns:
{string!} The number formatted as a non-empty string.
Borrowed from:
BasicChart

{boolean} dataWhere(datum)
A function that filters datums as they are being loading.
Context:
{null}
Arguments:
{pvc.data.Datum} datum
The datum being loaded.
Returns:
{boolean} true if the datum should be included, false if it should be excluded.
Borrowed from:
BasicChart

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