Properties
- color objectRequired
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.color properties
- auto booleanRequired
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. - negativeValue objectRequired
Negative value color.
negativeValue properties
- paletteColor paletteColorRequired
paletteColor
paletteColor properties
- color stringRequired
Color as hex string (mandatory if index: -1)
- index numberRequired
Index in palette
-
-
- positiveValue objectRequired
Positive value color.
positiveValue properties
- paletteColor paletteColorRequired
paletteColor
-
- subtotal objectRequired
Subtotal value color.
subtotal properties
- paletteColor paletteColorRequired
paletteColor
-
-
- dataPoint objectRequired
Data point.
dataPoint properties
- showLabels booleanRequired
Show labels.
-
- dimensionAxis objectRequired
Dimension axis settings.
dimensionAxis properties
- dock 'near' | 'far'Required
Axis docking position
- label 'auto' | 'horizontal' | 'tilted'Required
Label orientation
- show 'labels' | 'none'Required
Labels and title
-
- footnote string | StringExpression
Visualization footnote.
- gridlines objectRequired
Grid lines settings.
gridlines properties
- auto booleanRequired
Automatic grid line spacing.
- spacing 0 | 2 | 3Required
Grid line spacing. Used only when auto is set to false.
-
- legend objectRequired
Legend settings.
legend properties
- dock 'auto' | 'right' | 'left' | 'bottom' | 'top'Required
Sets the legend position.
- show booleanRequired
Set to show the legend.
-
- measureAxis objectRequired
Measure axis settings.
measureAxis properties
- autoMinMax booleanRequired
Automatic max/min
- dock 'near' | 'far'Required
Axis docking position
- max number | ValueExpressionRequired
Axis max value.
"autoMinMax"
must be set to false and"minMax"
must be set to"max"
or"minMax"
to use this property - min number | ValueExpressionRequired
Axis min value.
"autoMinMax"
must be set to false and"minMax"
must be set to"min"
or"minMax"
to use this property - minMax 'min' | 'max' | 'minMax'Required
Set custom max/min
- show 'labels' | 'none'Required
Labels and title
- spacing numberRequired
Axis scale
-
- qHyperCubeDef objectRequired
Extends
HyperCubeDef
, see Engine API:HyperCubeDef
.qHyperCubeDef properties
- qMeasures Array< MeasureProperties >Required
-
- refLine objectRequired
Reference lines settings
refLine properties
- refLines Array< refLine >Required
Array of measure based reference line definitions
-
- showTitles boolean
Show title for the visualization.
- subtitle string | StringExpression
Visualization subtitle.
- title string | StringExpression
Visualization title.
- version stringRequired
Current version of this generic object definition.
Field attributes structure.
Properties
- dec stringRequired
Defines the decimal separator.
- Fmt stringRequired
Defines the format pattern that applies to qText.
- nDec numberRequired
Number of decimals.
- Thou stringRequired
Defines the thousand separator (if any).
- Type stringRequired
Type of the field.
- UseThou numberRequired
Defines whether or not a thousands separator must be used.
Extends NxInlineMeasureDef
, see Engine API: NxInlineMeasureDef
.
Properties
- subtotal subtotalPropertiesRequired
subtotal settings.
subtotal properties
- enable booleanRequired
Option to add a subtotal after a measure.
- label stringRequired
Label of the subtotal added after a measure.
-
- valueType 'NORMAL' | 'INVERSE' | 'SUBTOTAL'Required
Measure operation.
Extends NxMeasure
, see Engine API: NxMeasure
.
Properties
- qDef InlineMeasureDefRequired
qDef properties
- subtotal subtotalPropertiesRequired
subtotal settings.
subtotal properties
- enable booleanRequired
Option to add a subtotal after a measure.
- label stringRequired
Label of the subtotal added after a measure.
-
- valueType 'NORMAL' | 'INVERSE' | 'SUBTOTAL'Required
Measure operation.
-
Color information structure. Holds the actual color and index in palette.
Properties
- color stringRequired
Color as hex string (mandatory if index: -1)
- index numberRequired
Index in palette
When enabled, the number format to use can be selected from multiple predefined formats based on the desired type (number, date).
properties.qDef.qNumFormat FieldAttributes
see Engine API: FieldAttributes
.
Properties
- show boolean | ValueExpressionRequired
Set to true to display this reference line.
- label stringRequired
Reference line label.
- showLabel boolean
Set to true to show the label of this reference line.
- showValue boolean
Set to true to show the value of this reference line.
- paletteColor paletteColorRequired
paletteColor properties
- color stringRequired
Color as hex string (mandatory if index: -1)
- index numberRequired
Index in palette
-
- style refLineStyle
Styling settings for reference line
style properties
- lineThickness number
Set the thickness for this reference line.
- lineType string
Set the dash type for this reference line.
-
- coloredBackground boolean
Set to true to fill the label and/or value of this reference line with this color
Styling settings for reference line
Properties
- lineThickness number
Set the thickness for this reference line.
- lineType string
Set the dash type for this reference line.
Settings for subtotal
Properties
- enable booleanRequired
Option to add a subtotal after a measure.
- label stringRequired
Label of the subtotal added after a measure.