Pie chart properties
These are the properties used by Qlik Sense pie charts.
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.
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
Name | Type | Description | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
qDimensions | Array |
Extends NxDimension, see Engine API: NxDimension. Additional properties
|
|||||||||||||||||||||||||||||||||
qMeasures | Array |
Extends NxMeasure, see Engine API: NxMeasure. Additional properties
|
|||||||||||||||||||||||||||||||||
qLayoutExclude | Object |
|
|||||||||||||||||||||||||||||||||
customErrorMessage | Object |
Set to define custom error messages.
|
donut
Type: Object
Pie chart donut settings.
Properties
Name | Type | Description |
---|---|---|
showAsDonut | Boolean |
Set to present the pie chart as a donut. |
dimensionTitle
Type: Boolean
Display the dimension title.
Default: true
dataPoint
Type: Object
Data point settings.
Properties
Name | Type | Description |
---|---|---|
auto | Boolean |
Automatically select how to present data point values. Default: true |
labelMode | String |
Set how to present data point values. Dependent of the auto property. Can be one of:
Default: share |
color
Type: Object
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.
The following parameters can be set in the color object:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
auto | Boolean |
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. Default: true |
|||||||||
mode | String |
Sets the coloring mode for the visualization when auto-coloring has been switched off ("auto": false). Can be one of:
|
|||||||||
useBaseColors | String |
Only applicable when "mode": "primary" or "mode": "byMultiple" has been defined. Use colors encoded in master items. Should only be defined when a master dimension or master measure used in the visualization has a color assigned to it. One of:
Default: off |
|||||||||
singleColor | Integer |
Deprecated. Use paletteColor instead. Set to use single color. Default: 3 |
|||||||||
paletteColor | Object |
The paletteColor object is used to define the color when you color by single color ("mode": "primary"). It has the following properties:
|
|||||||||
persistent | Boolean |
Set to true to use persistent colors on data points between selection states. Only applicable when using one dimension and when "mode": "byDimension" or when "mode": "byMultiple". Default: false |
|||||||||
expressionIsColor | Boolean |
Set to true to define whether the result of the expression is a valid CSS3 color. Only applicable when "mode": "byExpression". Default: true |
|||||||||
expressionLabel | String |
Defines the label on tool tips when using a coloring expression. Only applicable when "mode": "byExpression" and only used if "expressionIsColor": false. |
|||||||||
colorExpression | Value Expression Container |
Sets the color expression to be used when "mode": "byExpression" is defined. Supported formats:
Example: "colorExpression": "=if(sum(Sales)<avg(Total aggr(sum(Sales),Product)),rgb(255,0,0),RGB(0,255,0))"
|
|||||||||
measureScheme | String |
Color scheme when "mode": "byMeasure". Can be one of:
Default: sg |
|||||||||
useMeasureGradient | Boolean |
Set to true if you want to apply the colors defined for library measures when used. Only applicable if "mode": "byMeasure". Default: true |
|||||||||
dimensionScheme | String |
Color scheme when "mode": "byDimension" or "mode": "byMultiple". Can be one of:
Default: 12 |
|||||||||
useDimColVal | Boolean |
Set to true if you want to apply the colors defined for library dimensions when used. Only applicable if "mode": "byDimension". Default: true |
|||||||||
reverseScheme | Boolean |
Set to true to reverse the color scheme. |
|||||||||
autoMinMax | Boolean |
Set to false to define custom color range. Custom color range is only applicable when coloring is by measure ("mode": "byMeasure") or by expression ("mode": "byExpression"). When coloring is by expression, "expressionIsColor": "false" must be set for custom color range to work. Default: true |
|||||||||
measureMin | Value Expression Container |
Set the min value for the color range. Only applicable if autoMinMax: false. Can be used in conjunction with measureMax or by its own. |
|||||||||
measureMax | Value Expression Container |
Set the max value for the color range. Only applicable if autoMinMax: false. Can be used in conjunction with measureMin or by its own. |
legend
Type: Object
Legend settings.
Properties
Name | Type | Description |
---|---|---|
show | Boolean |
Set to show the legend. Default: true |
dock | String |
Sets the legend position. Can be one of:
Default: auto |
showTitle | Boolean |
Show the legend title. Default: true |