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
- box objectRequired
box properties
- paletteColor paletteColorRequired
The paletteColor object is used to define the box color when you color by single color
("mode": "primary")
.paletteColor properties
- color stringRequired
Color as hex string (mandatory if index: -1)
- index numberRequired
Index in palette
-
-
- expressionLabel stringRequired
Label to be defined on tool tips when using a coloring expression. Only used if
'expressionIsColor': false
. - point objectRequired
point 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. - expressionIsColor trueRequired
Should be true
- mode 'primary' | 'byExpression' | 'byMultiple'Required
Sets the coloring mode for the visualization when auto-coloring has been switched off (
"auto": false
). Can be one of:primary
: a single color (by default blue) is used for all items in the chart. In visualizations that do not benefit from multiple colors (bar charts with one dimension and scatter plots), single color is the default setting.byExpression
: coloring is based on an expression, which in most cases is a color code. Details are set in the"expressionIsColor"
,"expressionLabel
" and"colorExpression"
properties.byMultiple
: can be used when more than one measure is used. By default, 12 colors are used for the dimensions. The colors are reused when there are more than 12 dimension values.
- useBaseColors 'off' | 'dimension' | 'measure'Required
Use colors encoded in master items. Only applicable when
"mode": "primary"
has been defined.
-
-
- dimensionAxis objectRequired
Dimension axis settings.
dimensionAxis properties
- dock 'near' | 'far'Required
Axis docking position
- label 'auto'Required
Label orientation
- show 'all' | 'labels' | 'title' | '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.
-
- 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 'all' | 'labels' | 'title' | 'none'Required
Labels and title
- spacing numberRequired
Axis scale
-
- orientation 'vertical' | 'horizontal'Required
Orientation setting. If vertical, the dimension axis can only be docked on bottom or top and measure axis on left or right.
- presentation objectRequired
Presentation settings for the distributionplot
presentation properties
- visibleComponents 'points_box' | 'points' | 'box'Required
Visible components of the distributionplot
-
- qHyperCubeDef objectRequired
Extends
HyperCubeDef
, see Engine API:HyperCubeDef
. - 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.
- sorting objectRequired
Wrapper for sorting properties which will be set on the outer dimension.
sorting properties
- autoSort booleanRequired
Sort automatically
- elementId 'distplot-exp-min' | 'distplot-exp-max'Required
Sorting preset
- expression ValueExpressionRequired
Expression for the sorting. Requires sortByExpression to be -1 or 1.
- sortCriteria objectRequired
sortCriteria properties
- sortByAscii numberRequired
Sort by alphabetic
- sortByExpression numberRequired
Sort by expression
- sortByNumeric numberRequired
Sort by numeric
- sortByLoadOrder numberRequired
Sort by load order
-
-
- subtitle string | StringExpression
Visualization subtitle.
- title string | StringExpression
Visualization title.
- version stringRequired
Current version of this generic object definition.
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
Property for controlling displacement of data points
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.