Gauge properties
These are the properties used by Qlik Sense gauges.
Properties
showTitles
Type: Boolean
Show title for the visualization.
Default: true.
showDetails
Type: Boolean
Sets if visualization details should be shown.
Default: false
title
Type: String | qStringExpression
Visualization title shown if "showTitles": true.
subtitle
Type: String | qStringExpression
Visualization subtitle shown if "showTitles": true.
footnote
Type: String | qStringExpression
Visualization footnote shown if "showTitles": true.
disableNavMenu
Type: Boolean
Disables the hover menu in the visualization.
Default: false
qHyperCubeDef
Type: Object
The hypercube definition used by most visualizations.
A subset of the properties available in the qHyperCubeDef is presented here. For complete documentation of all available properties, see Engine API: HyperCubeDef.
Properties
qMeasures
Type: Array
Description: Extends NxMeasure, see Engine API: NxMeasure.
Additional properties
-
qDef
Type: Object
Description: Extends NxInlineMeasureDef, see Engine API: NxInlineMeasureDef.
qDef Properties Name Type Description autoSort Boolean Set to automatically sort the measure.
Default: true
cId String ID used by the client. Must be unique within the current chart. numFormatFromTemplate Boolean When enabled, the number format to use can be selected from multiple predefined formats based on the desired type: number or date.
Default: true
isCustomFormatted Boolean Set to true to toggle off the default client formatting. -
qAttributeExpressions
Type: Array
Extends NxAttrExprDef, see Engine API: NxAttrExprDef.
id
Type: String
One of:
- colorByAlternative: colors the chart using different dimensions. Can be used together with color.mode="byDimension" for attribute dimensions.
- colorByExpression: used together with color.mode="byExpression".
qLayoutExclude
Type: Object
customErrorMessage
Type: Object
Set to define custom error messages.
-
calcCondition
Type: String
Description: Deprecated. Use qCalcCondition.qMsg instead. Set to customize the calculation condition unfilled message.
refLine
Type: Object
Reference line settings.
refLines
Type: Array
Name | Type | Description |
---|---|---|
show | Boolean |
Set to true to display this reference line. Default: true |
label | String | Reference line label. |
color | Integer |
Deprecated. Use paletteColor instead. Color. Default: 3 |
paletteColor | Object |
Description: Color information structure. Holds the actual color and index in palette.
|
measureAxis
Type: Object
Measure axis settings.
Name | Type | Description |
---|---|---|
show | String |
Set to display the labels and titles. Can be one of:
Default: all |
spacing | Number |
Set the axis scale: Default: 1 |
min | ValueExpressionContainer | Set the min value for the range. |
max | ValueExpressionContainer | Set the max value for the range. |
gaugetype
Type: String
Sets the visual representation of the gauge. Can be one of:
- radial
- bar
Default: radial
autoOrientation
Type: Boolean
Sets auto orientation.
Default: true
orientation
Type: String
Orientation settings. Applicable if "autoOrientation": false. Can be:
- horizontal
- vertical
Default: horizontal
angle
Type: Number
Sets the arc size of a radial gauge. All gauges created with Qlik Sense by default sets "angle": 0.7 which means that 70 per cent of the arc is displayed. If you set "angle": 0.5, half of the arc is displayed.
Default: 0.7
useSegments
Type: Boolean
Set to use color segments.
progressColor
Type: Integer
Deprecated. Use paletteProgressColor instead.
Set single color to use. Only used if useSegments is false.
Default: 3
paletteProgressColor
Type: Object
Color information structure. Holds actual color and index in palette.
Name | Type | Description |
---|---|---|
index | Integer |
Index in the palette. The default Qlik Sense color palette:
Default: 6 |
color | String |
Color as HEX string. Mandatory if "index": "-1". |
valueMode
Type: String
Defines if the gauge should display absolute values or relative values. Can be one of:
- absolute
- relative
Default: absolute
maxSegments
Type: Integer
Sets the maximum number of color segments.
Default: 6
segmentInfo
Type: Object
Defines segment information. Applicable if "useSegments": true.
Name | Type | Description |
---|---|---|
limits | Array |
Color gradient limitations.
|
paletteColors | Object |
Replaces segment colors and provides ability to set custom colors. Overrides segment.colors when set.
|
colors | String |
Color value for individual segment.
|
disclaimerClosed
Type: Boolean
Set to true if you do not want to show a disclaimer on gauge objects.
Default: true
color
Type: Object
Controls if colors encoded in master items should be used.
Name | Type | Description |
---|---|---|
useBaseColors | String |
Use colors encoded in master items. One of:
Default: measure |