Skip to main content Skip to complementary content

Basic object styling

These examples show how to apply basic styling to your Qlik Sense objects using custom themes. All properties referenced in the examples below are described in detail in Custom theme JSON properties.

Styling the titles

You can style the appearance of the titles of all chart types by defining the title object. It consists of the following properties:

  • main: options to define the font color and the font size of the main title for all chart types, including custom object (visualization extensions and widgets).
  • subTitle: options to define the font color and the font size of the subtitle for all chart types, including custom object (visualization extensions and widgets).
  • footer: options to define the font color and the font size of the footer for all chart types, including custom object (visualization extensions and widgets). Also an option to define the background color of the footer.
Information noteTitles are on by default for all visualizations except filter panes, KPIs, and text & image visualizations.
"title": { "main": { "color" : "@grayscale-40", "fontSize" : "20px" }, "subTitle" : { "color" : "@grayscale-40", "fontSize" : "16px" }, "footer" : { "color" : "@grayscale-15", "fontSize" : "@text", "backgroundColor" : "@grayscale-85" } }

Styling the labels

The appearance of the labels are styled by defining properties in the label object. You can define the font color and the font size for the name of the label and for the value labels.

"label" : { "name" : { "color" : "@grayscale-35", "fontSize" : "@text" }, "value" : { "color" : "@grayscale-35", "fontSize" : "@text" } }

Styling the chart axes

You can style the appearance of the axes of all chart types by defining the axis object. It consists of the following properties:

  • title: options to define the font color and the font size of the axis titles for all chart types, including custom object (visualization extensions and widgets).
  • label: options to define the font color and the font size of the axis labels for all chart types, including custom object (visualization extensions and widgets).
  • line: options to define the major line color and the minor line color for all chart types, including custom object (visualization extensions and widgets).
"axis" : { "title" : { "color" : "@grayscale-35", "fontSize" : "@text" }, "label" : { "color" : "@grayscale-35", "fontSize" : "@text" }, "line" : { "major" : { "color" : "@grayscale-20" }, "minor" : { "color" : "@grayscale-40" } } }

Styling the chart grid

You can style the grid line color by defining properties in the grid object.

"grid" : { "line": { "highContrast": { "color": "#999999" }, "major": { "color": "#CCCCCC" }, "minor": { "color": "#E6E6E6" } } }

Styling the reference lines

You can style the reference line label font size and color by defining the referenceLine object. You can also style the appearance of reference lines that are out of range.

"referenceLine": { "label": { "name": { "color": "@grayscale-35", "fontSize": "@text" } }, "outOfBounds": { "color": "@grayscale-35", "backgroundColor": "@grayscale-35", "fontSize": "@text" } }

Styling the legends

The appearance of the chart legends are styled by defining properties in the legend object. You can define the font color and the font size for the legend title and for the legend labels.

"legend": { "title": { "fontSize": "@text", "color": "@grayscale-35" }, "label": { "fontSize": "@text", "color": "@grayscale-35" } }

Full code example

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 – let us know how we can improve!