Skip to main content Skip to complementary content

Reusing properties defined by Qlik Sense

You can reuse property definitions that come built in with Qlik Sense.

Reusing Dimensions

When you reuse the Dimensions property panel accordion item, it includes the following:

  • Add dimension

When you have added a dimension, you have the following default properties:

  • Field
  • Label
  • Show null values
  • Limitation
  • Show others
  • Others label

Example: Add Dimensions accordion

The example below depicts how to add a Dimensions accordion to the property panel of your visualization. Note that it is defined that the visualization must have exactly one dimension.

define( [], function ( ) { return { type: "items", component: "accordion", items: { dimensions: { uses: "dimensions", min: 1, max: 1 } } }; });
This is what it looks like in the property panel

Reusing Measures

When you reuse the Measures property panel accordion item, it includes the following:

  • Add measure

When you have added a measure, you have the following default properties:

  • Label
  • Expression
  • Number formatting

Example: Add Measures accordion

This example depicts how we now also have added the definition of the Measures accordion to the property panel of our extension. Note that we also here define that the visualization must have exactly one measure.

define( [], function ( ) { return { type: "items", component: "accordion", items: { dimensions: { uses: "dimensions", min: 1, max: 1 }, measures: { uses: "measures", min: 1, max: 1 } } }; });
This is what it looks like in the property panel

Reusing Sorting

When you reuse the Sorting property panel accordion item, it includes the following:

  • Labels of the dimension and measure used in the visualization
  • Sorting option (Auto or Custom)

    The Custom option includes the following:

    • Sort by expression (only available for dimensions)
    • Sort numerically
    • Sort alphabetically
    • Sort by frequency (only available for filter panes)

Example: Add Sorting accordion

This example depicts how we now also have added the definition of the Sorting accordion to the property panel of your visualization. We have not made any alterations to the Sorting accordion pre-defined by Qlik Sense.

define( [], function ( ) { return { type: "items", component: "accordion", items: { dimensions: { uses: "dimensions", min: 1, max: 1 }, measures: { uses: "measures", min: 1, max: 1 }, sorting: { uses: "sorting" } } }; });
This is what it looks like in the property panel. Note that Custom has been selected for the Dimension (Dim1)

Reusing Add-ons

When you reuse the Addons property panel accordion item, it includes the following:

  • Data handling
  • Reference lines

Example: Add Add-ons accordion

This example depicts how we add the definition of the Add-ons accordion to the property panel of your visualization. We have not made any alterations to the Add-ons accordion pre-defined by Qlik Sense.

define( [], function ( ) { return { type: "items", component: "accordion", items: { dimensions: { uses: "dimensions", min: 1, max: 1 }, measures: { uses: "measures", min: 1, max: 1 }, sorting: { uses: "sorting" }, addons: { uses: "addons" } } }; });
This is what it looks like in the property panel

Reusing Appearance

When you reuse the Appearance property panel accordion item, it includes the following:

  • General

    Includes settings for Title, Subtitle and Footnote

  • Presentation (only available for visualizations that have more than one dimension)
  • Colors and legend (only available in some types of visualizations)
  • X-axis (only available in some types of visualizations)
  • Y-axis (only available in some types of visualizations)

Example: Add Appearance accordion

This example depicts how we add the definition of the Appearance accordion to the property panel of your visualization. We have not made any alterations to the Add-ons accordion pre-defined by Qlik Sense.

The Appearance property panel accordion item is named settings in the code. See the example below.
define( [], function ( ) { return { type: "items", component: "accordion", items: { dimensions: { uses: "dimensions", min: 1, max: 1 }, measures: { uses: "measures", min: 1, max: 1 }, sorting: { uses: "sorting" }, addons: { uses: "addons" }, settings: { uses: "settings" } } }; });
This is what it looks like in the property panel

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!