@nebula.js/sn-waterfall
Version:
Waterfall supernova
331 lines (244 loc) • 15.6 kB
Markdown
# API Reference
* [properties](#properties) : <code>object</code>
* [.version](#properties.version) : <code>string</code>
* [.qHyperCubeDef](#properties.qHyperCubeDef) ⇐ <code>HyperCubeDef</code>
* [.qMeasures](#properties.qHyperCubeDef.qMeasures) : [<code>Array.<MeasureProperties></code>](#MeasureProperties)
* [.color](#properties.color) : <code>object</code>
* [.auto](#properties.color.auto) : <code>boolean</code>
* [.positiveValue](#properties.color.positiveValue) : <code>object</code>
* [.paletteColor](#properties.color.positiveValue.paletteColor) : [<code>paletteColor</code>](#paletteColor)
* [.negativeValue](#properties.color.negativeValue) : <code>object</code>
* [.paletteColor](#properties.color.negativeValue.paletteColor) : [<code>paletteColor</code>](#paletteColor)
* [.subtotal](#properties.color.subtotal) : <code>object</code>
* [.paletteColor](#properties.color.subtotal.paletteColor) : [<code>paletteColor</code>](#paletteColor)
* [.dataPoint](#properties.dataPoint) : <code>object</code>
* [.showLabels](#properties.dataPoint.showLabels) : <code>boolean</code>
* [.dimensionAxis](#properties.dimensionAxis) : <code>object</code>
* [.dock](#properties.dimensionAxis.dock) : <code>'near'</code> \| <code>'far'</code>
* [.label](#properties.dimensionAxis.label) : <code>'auto'</code> \| <code>'horizontal'</code> \| <code>'tilted'</code>
* [.show](#properties.dimensionAxis.show) : <code>'labels'</code> \| <code>'none'</code>
* [.gridlines](#properties.gridlines) : <code>object</code>
* [.auto](#properties.gridlines.auto) : <code>boolean</code>
* [.spacing](#properties.gridlines.spacing) : <code>0</code> \| <code>2</code> \| <code>3</code>
* [.legend](#properties.legend) : <code>object</code>
* [.dock](#properties.legend.dock) : <code>'auto'</code> \| <code>'right'</code> \| <code>'left'</code> \| <code>'bottom'</code> \| <code>'top'</code>
* [.show](#properties.legend.show) : <code>boolean</code>
* [.measureAxis](#properties.measureAxis) : <code>object</code>
* [.autoMinMax](#properties.measureAxis.autoMinMax) : <code>boolean</code>
* [.dock](#properties.measureAxis.dock) : <code>'near'</code> \| <code>'far'</code>
* [.max](#properties.measureAxis.max) : <code>number</code> \| <code>ValueExpression</code>
* [.min](#properties.measureAxis.min) : <code>number</code> \| <code>ValueExpression</code>
* [.minMax](#properties.measureAxis.minMax) : <code>'min'</code> \| <code>'max'</code> \| <code>'minMax'</code>
* [.show](#properties.measureAxis.show) : <code>'labels'</code> \| <code>'none'</code>
* [.spacing](#properties.measureAxis.spacing) : <code>number</code>
* [.refLine](#properties.refLine) : <code>object</code>
* [.refLines](#properties.refLine.refLines) : [<code>Array.<refLine></code>](#refLine)
* [.showTitles](#properties.showTitles) : <code>boolean</code>
* [.subtitle](#properties.subtitle) : <code>string</code> \| <code>StringExpression</code>
* [.title](#properties.title) : <code>string</code> \| <code>StringExpression</code>
* [.footnote](#properties.footnote) : <code>string</code> \| <code>StringExpression</code>
---
<a name="properties.version"></a>
### properties.version : <code>string</code>
Current version of this generic object definition.
**Kind**: static property of [<code>properties</code>](#properties)
<a name="properties.qHyperCubeDef"></a>
### properties.qHyperCubeDef ⇐ <code>HyperCubeDef</code>
Extends `HyperCubeDef`, see Engine API: `HyperCubeDef`.
**Kind**: static property of [<code>properties</code>](#properties)
**Extends**: <code>HyperCubeDef</code>
<a name="properties.qHyperCubeDef.qMeasures"></a>
#### qHyperCubeDef.qMeasures : [<code>Array.<MeasureProperties></code>](#MeasureProperties)
**Kind**: static property of [<code>qHyperCubeDef</code>](#properties.qHyperCubeDef)
<a name="properties.color"></a>
### properties.color : <code>object</code>
Color settings.
Most color options for visualizations are set in the color object in the options. You activate custom coloring by setting `"auto": false` which turns off auto-coloring.
If `"auto": true`, no other properties need to be defined in the color object.
Note: Some of the color properties are depending on which theme is currently being used.
**Kind**: static property of [<code>properties</code>](#properties)
* [.color](#properties.color) : <code>object</code>
* [.auto](#properties.color.auto) : <code>boolean</code>
* [.positiveValue](#properties.color.positiveValue) : <code>object</code>
* [.paletteColor](#properties.color.positiveValue.paletteColor) : [<code>paletteColor</code>](#paletteColor)
* [.negativeValue](#properties.color.negativeValue) : <code>object</code>
* [.paletteColor](#properties.color.negativeValue.paletteColor) : [<code>paletteColor</code>](#paletteColor)
* [.subtotal](#properties.color.subtotal) : <code>object</code>
* [.paletteColor](#properties.color.subtotal.paletteColor) : [<code>paletteColor</code>](#paletteColor)
<a name="properties.color.auto"></a>
#### color.auto : <code>boolean</code>
Set to use automatic coloring.
When `"auto": true`, color settings are based on the visualization used and the number of dimensions
and measures, that is, the settings are not fixed, but are dependent on the data input.
**Kind**: static property of [<code>color</code>](#properties.color)
**Default**: <code>true</code>
<a name="properties.color.positiveValue"></a>
#### color.positiveValue : <code>object</code>
Positive value color.
**Kind**: static property of [<code>color</code>](#properties.color)
<a name="properties.color.positiveValue.paletteColor"></a>
##### positiveValue.paletteColor : [<code>paletteColor</code>](#paletteColor)
paletteColor
**Kind**: static property of [<code>positiveValue</code>](#properties.color.positiveValue)
**Default**: <code>{ index: 6, color: null }</code>
<a name="properties.color.negativeValue"></a>
#### color.negativeValue : <code>object</code>
Negative value color.
**Kind**: static property of [<code>color</code>](#properties.color)
<a name="properties.color.negativeValue.paletteColor"></a>
##### negativeValue.paletteColor : [<code>paletteColor</code>](#paletteColor)
paletteColor
**Kind**: static property of [<code>negativeValue</code>](#properties.color.negativeValue)
**Default**: <code>{ index: -1, color: '#cc6677' }</code>
<a name="properties.color.subtotal"></a>
#### color.subtotal : <code>object</code>
Subtotal value color.
**Kind**: static property of [<code>color</code>](#properties.color)
<a name="properties.color.subtotal.paletteColor"></a>
##### subtotal.paletteColor : [<code>paletteColor</code>](#paletteColor)
paletteColor
**Kind**: static property of [<code>subtotal</code>](#properties.color.subtotal)
**Default**: <code>{ index: -1, color: '#c3c3c3' }</code>
<a name="properties.dataPoint"></a>
### properties.dataPoint : <code>object</code>
Data point.
**Kind**: static property of [<code>properties</code>](#properties)
<a name="properties.dataPoint.showLabels"></a>
#### dataPoint.showLabels : <code>boolean</code>
Show labels.
**Kind**: static property of [<code>dataPoint</code>](#properties.dataPoint)
**Default**: <code>true</code>
<a name="properties.dimensionAxis"></a>
### properties.dimensionAxis : <code>object</code>
Dimension axis settings.
**Kind**: static property of [<code>properties</code>](#properties)
* [.dimensionAxis](#properties.dimensionAxis) : <code>object</code>
* [.dock](#properties.dimensionAxis.dock) : <code>'near'</code> \| <code>'far'</code>
* [.label](#properties.dimensionAxis.label) : <code>'auto'</code> \| <code>'horizontal'</code> \| <code>'tilted'</code>
* [.show](#properties.dimensionAxis.show) : <code>'labels'</code> \| <code>'none'</code>
<a name="properties.dimensionAxis.dock"></a>
#### dimensionAxis.dock : <code>'near'</code> \| <code>'far'</code>
Axis docking position
**Kind**: static property of [<code>dimensionAxis</code>](#properties.dimensionAxis)
**Default**: <code>"near"</code>
<a name="properties.dimensionAxis.label"></a>
#### dimensionAxis.label : <code>'auto'</code> \| <code>'horizontal'</code> \| <code>'tilted'</code>
Label orientation
**Kind**: static property of [<code>dimensionAxis</code>](#properties.dimensionAxis)
<a name="properties.dimensionAxis.show"></a>
#### dimensionAxis.show : <code>'labels'</code> \| <code>'none'</code>
Labels and title
**Kind**: static property of [<code>dimensionAxis</code>](#properties.dimensionAxis)
**Default**: <code>labels</code>
<a name="properties.gridlines"></a>
### properties.gridlines : <code>object</code>
Grid lines settings.
**Kind**: static property of [<code>properties</code>](#properties)
* [.gridlines](#properties.gridlines) : <code>object</code>
* [.auto](#properties.gridlines.auto) : <code>boolean</code>
* [.spacing](#properties.gridlines.spacing) : <code>0</code> \| <code>2</code> \| <code>3</code>
<a name="properties.gridlines.auto"></a>
#### gridlines.auto : <code>boolean</code>
Automatic grid line spacing.
**Kind**: static property of [<code>gridlines</code>](#properties.gridlines)
**Default**: <code>true</code>
<a name="properties.gridlines.spacing"></a>
#### gridlines.spacing : <code>0</code> \| <code>2</code> \| <code>3</code>
Grid line spacing. Used only when auto is set to false.
**Kind**: static property of [<code>gridlines</code>](#properties.gridlines)
**Default**: <code>2</code>
<a name="properties.legend"></a>
### properties.legend : <code>object</code>
Legend settings.
**Kind**: static property of [<code>properties</code>](#properties)
* [.legend](#properties.legend) : <code>object</code>
* [.dock](#properties.legend.dock) : <code>'auto'</code> \| <code>'right'</code> \| <code>'left'</code> \| <code>'bottom'</code> \| <code>'top'</code>
* [.show](#properties.legend.show) : <code>boolean</code>
<a name="properties.legend.dock"></a>
#### legend.dock : <code>'auto'</code> \| <code>'right'</code> \| <code>'left'</code> \| <code>'bottom'</code> \| <code>'top'</code>
Sets the legend position.
**Kind**: static property of [<code>legend</code>](#properties.legend)
**Default**: <code>'auto'</code>
<a name="properties.legend.show"></a>
#### legend.show : <code>boolean</code>
Set to show the legend.
**Kind**: static property of [<code>legend</code>](#properties.legend)
**Default**: <code>true</code>
<a name="properties.measureAxis"></a>
### properties.measureAxis : <code>object</code>
Measure axis settings.
**Kind**: static property of [<code>properties</code>](#properties)
* [.measureAxis](#properties.measureAxis) : <code>object</code>
* [.autoMinMax](#properties.measureAxis.autoMinMax) : <code>boolean</code>
* [.dock](#properties.measureAxis.dock) : <code>'near'</code> \| <code>'far'</code>
* [.max](#properties.measureAxis.max) : <code>number</code> \| <code>ValueExpression</code>
* [.min](#properties.measureAxis.min) : <code>number</code> \| <code>ValueExpression</code>
* [.minMax](#properties.measureAxis.minMax) : <code>'min'</code> \| <code>'max'</code> \| <code>'minMax'</code>
* [.show](#properties.measureAxis.show) : <code>'labels'</code> \| <code>'none'</code>
* [.spacing](#properties.measureAxis.spacing) : <code>number</code>
<a name="properties.measureAxis.autoMinMax"></a>
#### measureAxis.autoMinMax : <code>boolean</code>
Automatic max/min
**Kind**: static property of [<code>measureAxis</code>](#properties.measureAxis)
**Default**: <code>true</code>
<a name="properties.measureAxis.dock"></a>
#### measureAxis.dock : <code>'near'</code> \| <code>'far'</code>
Axis docking position
**Kind**: static property of [<code>measureAxis</code>](#properties.measureAxis)
**Default**: <code>"near"</code>
<a name="properties.measureAxis.max"></a>
#### measureAxis.max : <code>number</code> \| <code>ValueExpression</code>
Axis max value. `"autoMinMax"` must be set to false and `"minMax"`
must be set to `"max"` or `"minMax"` to use this property
**Kind**: static property of [<code>measureAxis</code>](#properties.measureAxis)
**Default**: <code>10</code>
<a name="properties.measureAxis.min"></a>
#### measureAxis.min : <code>number</code> \| <code>ValueExpression</code>
Axis min value. `"autoMinMax"` must be set to false and `"minMax"`
must be set to `"min"` or `"minMax"` to use this property
**Kind**: static property of [<code>measureAxis</code>](#properties.measureAxis)
**Default**: <code>0</code>
<a name="properties.measureAxis.minMax"></a>
#### measureAxis.minMax : <code>'min'</code> \| <code>'max'</code> \| <code>'minMax'</code>
Set custom max/min
**Kind**: static property of [<code>measureAxis</code>](#properties.measureAxis)
**Default**: <code>"min"</code>
<a name="properties.measureAxis.show"></a>
#### measureAxis.show : <code>'labels'</code> \| <code>'none'</code>
Labels and title
**Kind**: static property of [<code>measureAxis</code>](#properties.measureAxis)
**Default**: <code>"labels"</code>
<a name="properties.measureAxis.spacing"></a>
#### measureAxis.spacing : <code>number</code>
Axis scale
**Kind**: static property of [<code>measureAxis</code>](#properties.measureAxis)
**Default**: <code>1</code>
<a name="properties.refLine"></a>
### properties.refLine : <code>object</code>
Reference lines settings
**Kind**: static property of [<code>properties</code>](#properties)
<a name="properties.refLine.refLines"></a>
#### refLine.refLines : [<code>Array.<refLine></code>](#refLine)
Array of measure based reference line definitions
**Kind**: static property of [<code>refLine</code>](#properties.refLine)
<a name="properties.showTitles"></a>
### properties.showTitles : <code>boolean</code>
Show title for the visualization.
**Kind**: static property of [<code>properties</code>](#properties)
**Default**: <code>true</code>
<a name="properties.subtitle"></a>
### properties.subtitle : <code>string</code> \| <code>StringExpression</code>
Visualization subtitle.
**Kind**: static property of [<code>properties</code>](#properties)
**Default**: <code>""</code>
<a name="properties.title"></a>
### properties.title : <code>string</code> \| <code>StringExpression</code>
Visualization title.
**Kind**: static property of [<code>properties</code>](#properties)
**Default**: <code>""</code>
<a name="properties.footnote"></a>
### properties.footnote : <code>string</code> \| <code>StringExpression</code>
Visualization footnote.
**Kind**: static property of [<code>properties</code>](#properties)
**Default**: <code>""</code>
# Definitions