Skip to main content

Charts

A chart shows a saved view as a graph, a table or a block of text. Charts are made in the Chart Builder, and a chart is placed in an interface with the Interface Builder. A saved view is a query built in the Query Builder.

What you can do in the Chart Builder​

  • Build a chart from a saved view: drop its fields on shelves and see a preview of its rows
  • Choose one of 25 chart types with SHOW ME
  • Set the options that each chart type offers
  • Show the data as text with a Markdown chart
  • Add an interaction, so that a click on the chart opens a record, an interface or another chart
  • Save a chart, and lock it so that it cannot be changed by accident
  • Place the chart in an interface

Who can use the Chart Builder​

The Chart Builder is on the New page, in Custom Fields & Configuration. The section is shown to users who hold Manage Document Custom Fields, and the Chart Builder tile in it is shown to users who hold Manage Interfaces.

The New page with Custom Fields & Configuration open, showing the Interface Builder and Chart Builder tiles among the others

New > Custom Fields & Configuration

The Chart Editor​

Select Chart Builder to open the Chart Editor. It starts with a Create New Chart tile, then has one tile for each chart. Select a tile to open that chart in the Chart Builder. A chart is listed in the Chart Editor once it is saved.

The Chart Builder​

The Chart Builder has three panels: DATA on the left, the shelves and the preview in the middle, and FORMAT on the right. Save Chart is at the bottom of the window and again at the bottom of FORMAT. Lock chart is offered once the chart is saved.

The Chart Builder with the chart DOCS Chart: the saved view DOCS Sample Documents View on the left, doc_type on the X Axis shelf and Count on the Y Values shelf, a bar chart of four document types with a Live badge, and the SHOW ME grid on the right

The Chart Builder with a live preview

DATA panel​

ItemDescription
Chart NameThe name of the chart.
DatasourceThe saved view the chart reads. Type part of its name to find it.
DimensionsThe fields of the saved view that group the data. Drag one onto a shelf.
MeasuresThe fields that are counted or added up. Drag one onto a shelf.

Until a saved view is chosen, the panel says No data source selected.

Shelves and preview​

Each chart type has its own shelves. A bar chart has X Axis and Y Values, and a donut has a Categories shelf instead. Above the shelves are four marks: Color, Detail, Label and Tooltip.

The preview is drawn from the real rows of the saved view as soon as a field is placed on a shelf. The Live badge shows that the preview is connected to the data.

FORMAT panel​

SHOW ME​

SHOW ME shows the 25 chart types as tiles. Select a tile to change the chart type. Each type has its own shelves, so the fields are not carried over: after a change to Donut, its shelves are empty and the fields are placed again. Going back to Bar shows the fields that bar chart had.

  • With one dimension and one measure, Donut is the recommended type.
  • A tile is greyed out when the fields on the shelves cannot draw that type. With one dimension and one measure, XY, Gantt and Capacity are greyed out, and the tooltip reads Not enough fields for this chart.
  • With empty shelves, every type can be chosen.
The Chart Builder after choosing Donut in SHOW ME: the preview is a donut chart with the Categories shelf, and the donut tile is selected

SHOW ME with Donut chosen

SETTINGS​

The options under SETTINGS depend on the chart type. The lists below are the options each type shows.

  • Bar has Layout, Corner radius, Slice labels, Sort, Palette and INTERACTIONS.
  • Donut has Percentage Threshold, Show Total, Ring Thickness, Slice labels, Sort, Palette and INTERACTIONS.
  • Data Grid has the sections Colouring Rules, Formatting Rules, Action Rules, Drilldown Rules, Editing Rules, Document Action Settings and Data layer settings.
  • Kanban has the sections Lanes, Cards, Appearance, Conditional Coloring, Interaction Rules, Edit rules and Document actions.
  • Timeline has Category Keys, Start Date Key, End Date Key, Event Key, Preview Key and Action Rules.
  • Text Table has Cell colour, Sort, Show row totals, Show column totals, Decimals, Palette and INTERACTIONS.
  • Stat has Value Key, Compare Key, Trend Key, Unit, Invert Delta and Thresholds.
  • Tabs has Tab Configuration, where Add Tab adds a tab.
The Chart Builder with Data Grid chosen and SHOW ME folded away: the rows of the saved view in the preview, and the Data Grid settings on the right starting with Colouring Rules

Data Grid settings

Markdown chart​

A Markdown chart writes text from the rows of the saved view. Its SETTINGS have a Template Editor, with Open Template Editor, and Styling & Behavior.

Open Template Editor opens the Edit Markdown Template window. The template is Markdown with Liquid tags: {{ data.size }} is the number of rows, and a {% for item in data %} loop writes one line for each row, using the field names of the saved view, such as {{ item.doc_type }}. The preview shows the text once the window is closed.

A Markdown chart in the Chart Builder: the heading 8 documents and one line for each of the eight documents, such as Policy: Site access policy

A Markdown chart written from the rows of a saved view

INTERACTIONS​

An interaction makes the chart respond to a click on one of its data points. The INTERACTIONS list is in SETTINGS. It is empty until an interaction is added, and then it reads No click actions. Add one to drill down to a record or interface.

Select Add to open the Edit Action Rule window:

ItemDescription
WhenThe condition under which the action applies. Leave it empty for an action that always applies.
Then go toThe kind of target, Record, Virtual Interface or Chart, and then the target itself.
LabelThe name the click menu shows for this action.
The Edit Action Rule window with Virtual Interface chosen under Then go to, the interface DOCS Sample Interface selected, and the label Open the sample interface

The Edit Action Rule window

The saved interaction is listed under INTERACTIONS by its label.

The INTERACTIONS list of a bar chart with one interaction named Open the sample interface, with edit and delete buttons

An interaction in the INTERACTIONS list

When the chart is placed in an interface, a click on a data point opens a menu with Drill to detail, Filter dashboard by this and Actions. The interactions of the chart are listed under Actions. Selecting one opens its target: an interface opens in a window of its own.

The menu after a click on a bar: Drill to detail, Filter dashboard by this and Actions, with the interaction Open the sample interface under Actions

The menu after a click on a chart

The interface DOCS Sample Interface open in its own window after the chart's interaction was chosen

The interface opened by the interaction

Locking a chart​

A saved chart can be locked, so that nobody changes it by accident. Once a chart is saved, Lock chart is offered. Select it and the button reads Unlock chart. The lock is stored when the chart is saved.

A locked chart opens read-only: Save Chart is greyed out until Unlock chart is selected. The Portal also refuses a change to a locked chart from anywhere else, such as the API. To change the chart, select Unlock chart and then Save Chart.

A locked chart in the Chart Builder: the button reads Unlock chart and both Save Chart buttons are greyed out

A locked chart

How to build a chart​

How to build a chart

StepDescription
1Select New, open Custom Fields & Configuration and select Chart Builder.
2Select Create New Chart.
3Type a Chart Name.
4Select the Datasource, the saved view the chart reads.
5Drag a dimension from Dimensions onto the first shelf and a measure from Measures onto the second. The preview fills with the real rows.
6In SHOW ME, choose a different chart type if the first does not suit the data.
7Adjust the SETTINGS.
8Select Save Chart. The chart is listed in the Chart Editor.

How to add an interaction​

StepDescription
1Open the chart and scroll the FORMAT panel to INTERACTIONS.
2Select Add.
3Under Then go to, select Record, Virtual Interface or Chart, then choose the target.
4Type a Label. It is the name the click menu shows.
5Select Save, then Save Chart.

How to lock a chart​

StepDescription
1Open a saved chart from the Chart Editor.
2Select Lock chart, then Save Chart.
3To change the chart later, open it, select Unlock chart and then Save Chart.

How to write text from the data​

StepDescription
1Create a chart and choose its Datasource.
2In SHOW ME, select Markdown.
3Under Template Editor, select Open Template Editor.
4Write the template, for example a heading with {{ data.size }} and a {% for item in data %} loop that writes one line for each row.
5Close the window. The preview shows the text. Select Save Chart.

Troubleshooting​

IssueDetail
A chart type is greyed outThe fields on the shelves cannot draw that type. Remove the fields from the shelves: with empty shelves, every type can be chosen.
Save Chart is greyed outThe chart is locked. Select Unlock chart.