Factophant
Analysis Apps

Visualisation

The Visualisation is where your team works with a finished analysis app. It is built from widgets on a grid, tables, charts, figures and text, that turn the results of your pipeline into something people can actually use, with filters at the top of each page that narrow what the page shows. It is more than a report to read: from the Visualisation your team can run the app, see the latest run results, filter the data, type values back into a table, and download what they need. An app can hold more than one page of widgets, so a single app can cover several related topics.

How the Visualisation is built

You build it in the editor, on the Visualisation tab. Add widgets, arrange them in rows by dragging and resizing (see Arranging widgets in rows), and give each data widget a data source: the pipeline step (called a node) whose results it should show.

A Table, Chart, Pivot or Figure widget can read any node that holds data, and so can a page filter whose dropdown options load from a node: a dataset, a SQL node, and the two nodes that import data from elsewhere, indicator data from one of your indicator apps and analysis app data from another analysis app. You can show imported figures directly, without a SQL node in between. An imported node gets its columns from the pipeline's last successful run, so run the pipeline once after adding one: until then the widget's column settings ask you to run it first.

For data to appear, the pipeline must have run at least once. If a widget prompts you to run the pipeline, switch to the Data Pipeline, click Run, and the widget fills with fresh results. See the Pipeline overview for how running works.

While you work, all of this lives in your private draft. Click Publish to hand the new layout to your team; until you do, they keep seeing the previous one. See Draft and publish.

The editor's toolbar

While you edit a page, a toolbar stands upright on the left edge of it. From the top: Page filters, which opens the page's filters, with the number of filters the page has under it; Add widget (+); App theme (the palette), which opens the app's colour theme; Move toolbar to the bottom, which moves the toolbar; the width control, which sets how wide you read the page; and the clock, which shows who changed this Visualisation (for people who may read the audit trail). The page leaves room beside the toolbar, so it covers none of your widgets.

Add widget (or the A key) turns the toolbar into a sheet of widget cards. On the left it opens down the whole edge of the page; at the bottom it grows upward from the toolbar. Each card shows what the widget looks like, its name and what it is for, grouped under Data, Content and Query & AI.

  • Search at the top of the sheet: type a few words, like "bar chart" or "kpi", and only the cards that match every word stay. Enter adds the first one. Use the arrow keys to move between the cards.
  • Click a card to add its widget. With a widget selected, the new one goes in a new row right below that widget's row; with nothing selected, it goes at the end of the page. The new widget is selected with its settings open, scrolled into view and briefly outlined, and a message lets you undo the add, which takes the widget away again and closes its settings.
  • Drag a card onto the page to put the widget exactly where you want it. The sheet folds away while you drag, and the page shows where the widget would land, just as when you move a widget: between two rows it becomes a row of its own, over a row it joins that row. If you let go somewhere it cannot go, or press Esc, nothing is added and the sheet opens again with your search still in it. On a touch screen, tap a card to add it.

Esc closes the sheet from anywhere in it without adding anything, and so do the sheet's close button and a click anywhere else. A closes it too, from a card or the close button; in the search field it types the letter, so you can press A and start typing straight away.

Page filters (or the F key) turns the toolbar into the Page filters sheet the same way, in the same place: the page's filters, which you set up there. App theme (or the C key) does the same for the app's colour theme. With the sheet open, F, A and C switch it between the page's filters, the widget cards and the theme, and the key of what it already shows closes it - from anywhere but a text field, where they type their letter (move out of the search with Tab or the down arrow, or press Esc). The sheet never covers the filter bar above the page.

You can move the toolbar to the bottom of the page and back with the button after App theme: Move toolbar to the bottom while it stands on the left, Move toolbar to the left while it lies at the bottom.

  • Click it, or focus it and press Enter or Space, to move the toolbar to the other place. The button keeps the focus, so pressing again moves it back.
  • From the keyboard, focus it and press ↓ to move the toolbar to the bottom, or ← to move it back to the left.

At the bottom the toolbar lies flat and centred, and keeps clear of the AI button. Where you put it is remembered in this browser, for every page, report and app you edit, and the report's toolbar on the Reports tab follows it. The toolbar does not appear on a phone.

Arranging widgets in rows

A page is a stack of rows. The widgets of a row stand side by side, share one height and always fill the page's width, so moving, resizing, adding or deleting a widget never leaves a gap or an overlap.

  • Move a widget by its handle (⠿) in the small toolbar that appears when you hover the widget. While you drag, a card follows the pointer and says what letting go will do. Over a row, the row's widgets move apart to open a hatched slot: drop there and every widget in the row takes an equal share of its width. Near the top or bottom edge of a row, the rows below move down and a hatched bar spans the page: drop there and the widget becomes a row of its own, across the whole width. The row it left closes up. Press Esc, or let go outside the page, to leave everything as it was.
  • When a drop cannot work, the slot turns red and says why: the row is full (its widgets would be narrower than they can be), or the drop would put a Figure beside a widget that is not one - Figures share a row only with Figures. Let go and the widget goes back, with a message.
  • Change a width by pulling the edge two widgets of a row share: they trade width a column at a time, neither narrower than it can be. The outer edges of a row have no handle, since a row always fills the page.
  • Change a height by pulling a widget's bottom edge or a bottom corner: the whole row takes the height, in 20 px steps, and the rows below follow. While you pull, every widget of the row shows its size, for example 7/12 · 384 px. Double-click the bottom edge to fit the row to that widget's content. A row of Figures is 88 or 140 px tall.
  • From the keyboard, focus a widget's handle and press Enter or Space to lift it. ← and → choose a place in a row, ↑ and ↓ move between a row and the space above or below it; Enter drops the widget and Esc puts it back. Each step is read out. With a widget focused, Shift and the arrows change its size: left and right trade a column with its neighbour, up and down change its row's height by 20 px.
  • In the settings panel, Width (of 12) offers only the widths the row can give: a widget alone in its row is always 12, and a width the other widgets of the row need is disabled, with the reason in its tooltip. Height applies to every widget in the row; beside the px field there are the sizes S (184 px), M (384 px), L (584 px) and XL (784 px). Auto, which makes a widget as tall as its content, is offered only to a widget alone in its row.

Moving, adding and deleting a widget each show a message with Undo, which puts the page back exactly as it was.

A page built before rows existed keeps its arrangement until you first change its layout. That change arranges it in rows - widgets whose tops nearly line up share a row, widths keep their proportions, each row takes its tallest widget's height - and a message says "This page is now arranged in rows", with an Undo that puts the page back as it was. Readers see the new arrangement once you publish.

On the Reports tab the report has a toolbar of its own, with its own controls, in the same place: switching between a page and a report in the left rail keeps the toolbar where it was.

App theme

Every chart, Figure and printed report of an app draws in one colour theme: eight series colours. Pick it once for the whole app with App theme in the toolbar (or C), and every chart changes colour at once - in the editor, in the published app and on the report's pages and PDFs. The theme is part of your draft, like the rest of the Visualisation: your team sees it once you Publish - except an update of a saved theme, which reaches every app that uses it at once.

The sheet has two tabs, Themes and Overrides. It uses one word for each thing: a palette kept in the workspace is a saved theme, a theme you edited here and did not save is an unsaved theme, and a colour picked by hand on one chart, which ignores the theme, is an override.

  • Current theme heads the Themes tab: the colours and name of the theme in use, with Edit for a saved theme and Save for an unsaved one. While any chart has an override, a link under it counts them and opens the Overrides tab.
  • The built-in themes: Factophant (the product's own colours), Ocean, Forest, Sunset, Graphite and blue, and Colour-blind safe (Okabe and Ito's palette, for readers who tell some colours apart with difficulty). Each card shows its eight colours; the one in use is marked with a check. Click one to apply it. A message says so, and how many overrides it kept, with Undo.
  • Customize opens with + under Saved themes, with the pencil on a saved theme, or with Edit or Save on the current theme. It shows the theme's name, its eight colours, Series 1 to 8 - pick one to change it, and the one you are editing is named under them - and a colour picker, beside them when the sheet is wide: drag across the colour area and the hue bar, use the arrow keys (with Shift for bigger steps), type a hex code, pick one of the theme's colours, or, where your browser offers it, pick a colour from the screen. Every chart follows as you pick, without saving anything. Use without saving applies your colours as an unsaved theme; Cancel, Esc or closing the sheet puts the theme back as it was.
  • Overrides lists every colour set by hand on a chart or a Figure, on every page: its colour, and the page, widget and series or value it is on. Use theme colour gives it back to the theme; Add to theme makes the theme an unsaved one with that colour in the place it is in (a chart's second series is Series 2, a Figure is Series 1), and the chart then follows the theme. Use theme colours for all gives every one back at once. Each comes with Undo.
  • Allow overrides, at the end of the Overrides tab: on by default. Switched off, the colour pickers in a widget's settings offer the theme's colours only, with no Override. Overrides already set stay.

A colour picked from the theme follows the theme; an override stays exactly as you set it, through any change of theme, until you hand it back. The colours of a Figure's change against its comparison, green for up and red for down, are never part of a theme.

Saved themes

A workspace can keep a theme once and let any of its apps use it, so every app keeps one brand.

  • Save a theme. Choose + under Saved themes, give the theme a name, pick your colours and choose Save as new theme. The theme is saved to the workspace and this app uses it at once. A message says so, with Undo, which puts the app's previous theme back and deletes the theme.
  • Use it in another app. Open that app's App theme: the theme is listed under Saved themes. Click it to apply it, as you would a preset.
  • A saved theme is linked, not copied. Every app that uses it draws the theme's current colours.
  • Update it with the pencil on its card, or Edit on the current theme: change a colour and choose the Update button that carries the theme's name. Before anything changes, a warning names the apps that use the theme, counts any you cannot open, and says that every page of them changes, published pages included. Confirm to update them all at once, with no publish; Cancel changes nothing. A message says how many apps now use the new colours, with Undo.
  • Unlinking. Use without saving, or Add to theme on an override, gives the app an unsaved copy of the colours, which no longer follows the saved theme.
  • Delete it with the bin on its card. Every app that used it keeps exactly the colours it had, published pages included, and then names its theme "Copy of" and the theme's name, with Save. Undo brings the theme back and links every app to it again.
  • Restoring an earlier version of an app restores its link to the saved theme, which then draws the theme's current colours, not the colours it had then.
  • An archived app is not counted among the apps that use a theme, and follows the theme again once it is restored.

Saving, updating and deleting saved themes need the Manage saved themes permission, which admins and app builders have for the whole workspace. Anybody who can edit an app can apply one. A workspace keeps a limited number of saved themes.

Page filters

A page can carry filters: controls that let people narrow every table, chart, pivot and Figure on the page without changing anything you built. Rather than build one page per region, you add a Region filter: people pick a region and every widget on the page updates to match. One page serves everyone.

Reading a filtered page

The filters sit in a bar above the page, under the app's top bar, and stay in place while the page scrolls under them. The bar is always one row, and it shows only what is applied:

  • Filters, at its start, opens the Filters panel (below). Its count is how many filters you changed, or, while you have changed none, how many filters the page has.
  • Views, in the published app, opens your saved views.
  • A chip for each filter that holds a value, in the page's filter order, for example "Region: North". A filter you changed has an × that returns it to its default. A filter still at the value its author set carries a small default tag and no ×. A filter at All has no chip, unless its author gave it a value and you set it to All: that is a change, and its chip reads "All".
  • When the chips do not all fit, the rest fold into one chip, for example +3 more, that opens the panel. With nothing applied, the bar reads No filters applied · showing all data.
  • Reset to defaults, at its end, appears while any filter differs from its default and returns every filter to it.

Click a chip to open the panel on that filter. On a phone, Filters and Reset to defaults show only their icons.

The Filters panel lists every filter of the page, in order: its label, and under it a field showing its value, or All. On a desktop it opens under Filters, over the page, so nothing on the page moves; on a phone it slides up from the bottom of the screen. A field you changed has an × that returns it to its default. Click a field to choose a value: a dropdown lists its options with the default marked, and a search box when the list is long; a dropdown that takes several values has checkboxes; a number, date or text filter takes the value you type. A choice applies at once - there is no Apply button - and Reset at the bottom of the list returns that filter to its default. On a phone the choices open in place of the list, with Back to return. A page with nine filters or more adds Find a filter at the top of the panel, which finds filters by their label. The panel's footer offers Reset to defaults while anything has changed, and Done, which closes the panel, as do Esc and a click outside it.

Your choice is kept in the page's address, so reloading the page keeps it and a link you copy opens the page filtered the same way (see Copy link).

A widget that follows the filters shows nothing extra: the filter bar already says what the page is filtered by. Hover a widget, or move the keyboard into it, and a funnel appears in its header; hover the funnel to see the conditions it is read under, and any filter it does not follow. Only a widget that does NOT follow the filters is marked at all times, by a small grey badge with a stack icon beside its title. Hover it to read what the widget shows instead - Shows every Region when its data has no region (or holds values the filter cannot compare), Shows all data when it is set to ignore page filters - and which filters it is read under and which it is not. To see what one filter touches, point at its chip or at its field in the Filters panel (or move the keyboard to it): the widgets it narrows are outlined and the rest fade until you move on. When the filters leave a table or chart with no rows, it says which filters did it instead of showing an empty grid (see Table).

A dropdown loaded from a node follows the other filters on the page: pick a region, and the country list shows only countries with rows in that region, each with its row count (a list of dates is not counted), while the rest fold into a group you can open - or, with Only list options with rows switched on in the filter's settings, are left out (the value the filter holds always stays listed). Above the options the list says what narrowed it, for example "Narrowed by Year 2024 · Region North".

A dropdown loaded from a node can also depend on another filter of the page, so City follows Country: set Depends on in the filter's settings. Once a country is picked, City lists only the cities with rows for that country. Linked filters work as one:

  • In the bar they are one chip, marked with a link icon, that joins the values they hold with "›", for example "Germany › Berlin". Its × returns the whole chain to its defaults at once.
  • In the Filters panel they are one input, labelled with the filters' names in order. On a desktop it opens a column per filter, side by side: pick a country in the first and its cities appear in the next. Clear, at the top of a column, clears that filter alone. On a phone you go through the filters one at a time, with your picks so far shown at the top.
  • In the Page filters sheet they are grouped into one block, which moves as a whole.

Until Country is picked decides what City offers before then:

  • List every value (the default): City lists every city and can be picked on its own. Clearing Country keeps the city that was picked, and City can keep a default of its own.
  • Wait for Country: City reads Pick a Country first and narrows nothing until a country is picked, and clearing Country clears City with it. Use it for a filter that means little without its parent, such as a Postal code under City. Keeping a value as its default also keeps the country it was picked in as Country's default, and keeping All on Country removes it, so a page never opens narrowed by a filter that says it waits.

If changing one filter leaves another's value with no rows, that value is cleared and the page says so, with Undo. A value that matches no rows at all clears nothing: the empty widgets explain it instead. While a dropdown's options load, the list shows a placeholder; if they cannot be loaded it says so and offers Try again, and the filter keeps applying its value meanwhile. A text filter that matches a value ("equals") ignores upper and lower case and spaces at either end, so "germany" also finds " Germany ".

A filter that would narrow nothing on the page - it has no column yet, no widget on the page has its column, or every widget with its column ignores page filters - is not shown to readers at all, and a page none of whose filters narrows anything shows no filter bar.

Saved views

A view keeps a page's filter values under a name, so you can come back to "Q2 Germany" in one click. A view belongs to its page, and keeps only the filters that differ from their defaults. Saved views are offered in the published app, not in the editor.

Open them from Views in the filter bar, or from the select at the top of the Filters panel. While a view is open, the button carries its name. The menu lists:

  • Default view - the author's filters. It returns the page to the defaults its author set, as Reset to defaults does.
  • Shared with everyone on this page - views that everyone who can see the page can open.
  • Only me - your own views. Nobody else sees them.
  • Save current filters as a view… - available once you have changed a filter.
  • Copy link to these filters - see Copy link.

Each view shows its name and how many filters it keeps. Click one to open it: the page takes its filter values at once, and every filter it does not name goes back to its default.

Saving a view. Change the filters, then choose Save current filters as a view…, or Save as view in the Filters panel's footer. Type a name of up to 60 characters that none of your views has yet, and choose Save; Enter saves too, and Esc cancels. The new view is open at once. If you may edit the app, the form also asks who sees the view: Only me (the default), or Everyone on this page, and the button then reads Share.

An edited view. Change a filter while a view is open and the Views button adds edited. Save changes, in the Filters panel's footer, writes the new values into the view. On a shared view, Save changes is offered only to someone who may edit the app, and changes the view for everyone; anyone else gets Save as my view, which keeps the edit as a view of their own and leaves the shared one as it is.

Who can change a view. Point at a view in the menu, or move the keyboard to it, to see what you can do with it:

  • On a view of your own: Rename and Delete, and, if you may edit the app, Share with everyone on this page. A view cannot be shared under a name a shared view already has: rename it first.
  • On a shared view: Rename, Stop sharing and Delete for everyone, for everyone who may edit the app: the App builder or Admin role on the app. They manage every shared view, not only their own, so a shared view never gets stuck when the person who shared it leaves. Everyone else can open shared views, and keep their own copy of a change with Save as my view.

Sharing, stopping sharing and deleting each confirm with a message that offers Undo: it makes a shared view private again, shares a stopped view again, or brings a deleted view back with its name and filters, shared if it was. A view whose sharing stops goes back to the views of the person who saved it.

A view that names filters the page no longer has says so under its name, for example "1 filter no longer on this page". It still opens, with the rest of its filters.

The number of views a page can keep is limited.

Copy link to these filters, in the Views menu, copies the page's address with every filter you changed. Anyone who can already see the page opens it with the same filters.

Setting up page filters

In the editor, filters are set up in the Page filters sheet. Open it from Page filters on the toolbar or with F, from + Add filter in the Filters panel (which adds a filter and opens its settings), or from Configure... when you choose a filter's value in the Filters panel. The sheet opens beside the page, below the filter bar, so you can watch the bar and the page a filter narrows while you set it up. A widget's settings on the right stay open beside it. A click anywhere outside the sheet closes it; a click on a widget closes it and opens that widget's settings. The sheet lists the page's filters, each with its type, column, default and how many widgets it narrows - drag a row, or press Alt+↑ or Alt+↓ on it, to change the order of the filters in the bar and the Filters panel - and Add filter adds one. Open a filter to set its Label, Column, Type, Options (from a node column, or a fixed list) and Default value. Filters these widgets lists the widgets the filter narrows, and names the ones that ignore page filters; while the filter is open those widgets are marked on the page. Delete filter removes it. Page filters at the top of a filter's settings takes you back to the list. Filters are set up from a window wider than a phone's: on a phone the editor shows no toolbar.

Connect a filter to the column it filters on, and provide a dropdown's options either as a fixed list or loaded live from a pipeline node, one or the other. A dropdown matches by the option name you see: "High" finds the High rows whether the widget reads a dataset's dropdown column or a SQL node built from it. A dropdown loaded from a dataset's dropdown column lists that column's own choices, in their colours.

A filter narrows every table, chart, pivot and Figure on its own page whose data has the matching column, so one filter can drive the whole page. A widget that should always show everything (for example a grand total) can be set to Ignore page filters in its own settings (the Interactivity group); it then ignores every filter on its page. Two filters on the same page should not filter the same column: only one of them can apply. A filter belongs to its page, so moving a widget to another page puts it under that page's filters.

Give a filter a default value to have the page open already filtered, for example on the current year. Until someone picks a value, the default applies, and Reset at the bottom of the filter's popover returns to it. Someone who wants the page without the default can still pick All in a dropdown, or empty the input of any other filter. A filter without a default shows everything until someone picks a value. A dropdown loaded from a dataset's dropdown column takes its default from that column's choices; if the choice is later renamed, the filter's settings say the default is no longer one of them.

Preview and default. In the editor, choosing a value for a filter is a preview: its chip shows it as changed, the page shows the result, and nothing is saved - reload the editor and it is gone, and your team never sees it. To make the value the one the page opens with, choose Set ... as default where you choose the value, which names it (for example Set 2024 as default); that is saved like any other change to the page. When you have tried values on several filters, Set all as default in the Filters panel's footer keeps every one of them at once. Reset preview, in the bar, returns every filter to its default.

A filter that narrows nothing. In the editor, a filter readers would not see shows in the Filters panel as a dashed amber field that gives the reason - no column yet, no widget on the page with its column, every such widget ignoring page filters, or widgets whose values it cannot compare - and its row in the Page filters sheet is marked the same way. It does not stop you publishing. If a filter cannot filter anything as it is set up (no column chosen, a column no widget on the page has, an input type that does not fit the column, or a dropdown with no options), its settings say so. Your changes are still saved while you finish setting it up.

A report does not use page filters: a report block shows its widget's data without them.

When the Visualisation shows nothing

An app your team opens shows results from the latest published run. When there is no such run, the widgets are empty and a notice at the top of the page says which of three things is missing, and what fills it:

The notice saysWhat it meansWhat fills it
Not published yetThe app has no published version, so your team has nothing to see. Running it in this state only runs your draft.Publish the app from the editor (a member with the App builder or Admin role on the app).
Not calculated yetThe app is published but its pipeline has never run.Click Run on the Visualisation, or run it from the Data Pipeline.
No run has produced results yetThe pipeline has run, but no run has produced results for your team. A preview run of the draft keeps its results private to the editor; a run that failed or is still going has none to show yet.Click Run on the Visualisation - it runs the published version.

If there is no notice and a widget is still empty, the app IS populated and the question is the data itself: the filter or query matched no rows.

The Run button appears only for people who may run apps. Everyone else sees the same notice ending in "Ask a workspace administrator...", because the run would be refused for them.

When a widget names a column that no longer exists

A chart or pivot that groups its data names the columns it groups by and the columns it adds up, and how it adds each one up. If one of those columns is not in the widget's data source any more - it was renamed or removed in the pipeline, or Vera or an import created the widget with a column that was never there - or a summary names a function other than sum, count, avg, min or max, the widget does not guess. It shows a short message instead of data:

WhereWhat you see
Pivot"This widget's grouping can't be read: it names a column its data source doesn't have, an aggregate with no column, or a function other than sum, count, avg, min or max. An editor can fix it in the widget's settings.", in the pivot's grid.
Chart"This chart's grouping can't be read: it uses a column its data source doesn't have, or a function other than sum, count, avg, min or max. An editor can fix it in the chart's settings.", in place of the bars or slices.
ReportA pivot block keeps its column headings, and the line under it says "The grouping can't be read: it names a column its data source doesn't have, or a function it can't apply" where the row count would be. A chart block shows the chart's message.

There is no Try again: asking again gives the same answer until the widget changes.

To fix it, open the widget's settings in the editor. The column that no longer exists shows as an empty choice: pick one of the data source's columns there, or remove that row with its X. The widget reads its data again and draws as soon as the answer arrives. People reading the published app see the message until you publish the corrected version.

When a widget uses an unsupported feature

A widget whose saved settings use a feature Factophant no longer supports shows "This widget uses a feature that is no longer supported" in its own space. The other widgets on the page keep working. The same notice appears wherever a report or printout places that widget. Vera and connected AI clients receive the notice as a note, with no data for that widget.

An unsupported widget does not stop you editing the rest of the Visualisation: the editors keep saving your other changes and leave that widget exactly as it was saved. To clear the notice, remove the widget or replace it with a new one. If an edit leaves a widget with a setting its type does not accept, a persistent banner names the widget and its page, and changes are not saved until you correct or remove it.

Each widget accepts only the settings for its own type. When Vera, a connected AI client or an app import supplies an invalid setting, Factophant refuses the write and names the widget and the field. Choosing a different type in the editor starts with that type's settings.

Widget settings for AI clients

The tool schema describes eight authored widget types selected by type. All share id, type, title, description, descriptionAsTooltip, width and height. Widths are columns of the canvas's 12: full, half, third or quarter, or a whole number from 1 to 12, at least each type's own minimum. Heights are 200 px steps from 1 to 8 in whole 4 px rows (each row is 0.02 of a step, so 1.38 is a height and 1.375 is not), or auto; a figure is 1 or 2. Each alternative adds only these fields:

TypeSettings
tablenodeId, fixedFilters, filterOptOut, visibleColumns, pinnedColumns, linkColumns, columnWidths, editable, contextSources
chartnodeId, fixedFilters, filterOptOut, chartType, xColumn, chartGrouped, chartStacked, chartOrientation, chartLabelAngle, chartCategoryOrder, chartShowLegend, chartCategoryLabels, chartAggregates
pivotnodeId, fixedFilters, filterOptOut, tableGroupBys, tableAggregates, columnWidths
statnodeId, fixedFilters, filterOptOut, statColumn, statAggregation, statFormat, statComparisonFilters, statComparisonLabel
sqlnodeId, textContent
texttextContent, textAlign
aiskillTechnicalId
knowledge_basekbItemKey

Nested entries also have their own schemas. Filters use id, column, operator and value, and every filter in a list applies, several on one column included; a value of 0 or false is a filter like any other; aggregates use id, column, function and an optional label (a chart aggregate can also have color). Aggregate functions are sum, count, avg, min and max. A table has no grouping settings: use a pivot to summarise rows. The tool schema states which fields can be omitted. Omitted settings on an existing widget are kept; a new widget starts with its type's defaults. filterOptOut: true makes a table, chart, pivot or Figure ignore every filter on its page.

A page carries its filters in filters, a list of entries with id (unique in the whole Visualisation: it is the ?p_<id> key a shared link carries), label, column, filterType (dropdown, text, text_contains, number_eq, number_gt, number_gte, number_lt, number_lte, number_range, date_eq, date_before, date_after or date_range), a dropdown's dropdownOptions or its dropdownSourceNodeId and dropdownSourceColumn, and defaultValue. A page sent without filters keeps the filters it has; filters: [] removes them. edit_visualisation adds, changes and removes one filter with add_filter, update_filter and remove_filter, each naming its page. The Visualisation outline lists each page's filters with the widgets each one narrows and anything that stops it working, and an AI client's write is refused, naming the page, the filter and the fix, when it would leave a filter that cannot work as set up.

An unsupported widget is a read-only fallback, outside the tool schema. A write that leaves it as it is - sending it back as exactly its id and type, or not naming it in an edit - keeps it exactly as stored, so it never blocks a change to another widget. Sending it back with all its stored settings is refused. A write that changes it without making it valid is refused, naming the widget and its settings: remove it, or change its type to rebuild it. Changing a widget's type keeps its title, description and size and, when the new type reads data, its node, fixed filters and page-filter opt-out; every other setting starts from the new type's defaults.

An AI write is limited in length for what it adds or changes: a new page or widget id is at most 64 characters, a widget title 200, a page name 120 and a widget description 2,000. A value sent back unchanged is not limited, so a longer name someone typed in the editor stays. A text widget's content has no limit.

The widgets

Every widget is added in the editor and positioned on the grid. Table, Chart, Pivot and Figure widgets use a pipeline node as their data source; the other types have the settings described below.

Text

The Text widget puts formatted text on the page: headings, short notes, and instructions. Use it to give the page structure and to explain what people are looking at, for example a title, a note on where the data comes from, or how to use a filter. It shows no data, so it needs no data source.

Table

The Table widget shows your data as rows and columns, straight from a node. You choose which columns appear. To summarise rows by group, use a pivot. A table works in one of two ways:

  • Read-only tables display data and cannot be changed, the usual choice for a report.
  • Data-entry tables let people type values directly into the table from the app. Edits are saved when the pipeline runs. This is how a Visualisation becomes a place to enter data, not just read it. Only a data-entry table offers Import for loading a file into it, and in the editor its header carries an Editable label so you can tell it apart from a read-only table at a glance. A table with fixed filters can be editable. A row added with the New row strip or the + Row form starts with the value of every "equals" filter, filled in even when that column is hidden. The + Row form also lists the hidden columns that a filter applies to, each marked with a crossed-out eye beside its name (point at it to read "hidden in this table"), so you can check or change their values. An empty table with fixed filters shows no Add first row button: choose Edit and add rows with the New row strip. An empty cell of a new row under any other filter shows a small asterisk; point at it, tap it or move to it with the keyboard to see what the cell needs, for example "needs a value · anything except "Done"". When a column has several filters, it names all of them. When you choose Save and your changes write values, it shows Checking… while Factophant checks your changes against the table's filters. A save that only deletes rows is not checked. If every row still matches, your changes are saved straight away. If some rows would no longer match, those rows turn amber, each cell that breaks a filter carries a ! that tells you why when you point at it, tap it or move to it with the keyboard, and a dialog lists the rows that will leave the table. Choose Keep editing to fix them (changing a marked row clears its marks), or Save anyway to save them and let the filters hide them. While you keep editing, a warning with the number of marked rows sits at the left of the row beneath the table; choose it to open the dialog again. If the check can't be done, nothing is saved, the table tells you so, and Save becomes Try again, which checks your changes again. If a hidden column has a filter that can't be filled in automatically, the widget settings warn you and offer to show the column. Import is not offered while a table has fixed filters, because loading a file there could replace rows the table does not show.

Anyone whose role lets them enter data in the app - Contributor, App builder or Admin - can edit the rows of a data-entry table: change a value, add a row, or delete one. Each change is recorded in the audit trail under the name of the person who made it. Import, loading a file into the table, stays with workspace administrators, so other members do not see it.

A widget's Fixed filters (its settings' Data group) all apply together, two on the same column included: Amount at least 100 and Amount below 200 keep the rows from 100 up to, but not including, 200. A page filter on that same column replaces the widget's fixed filters on it while it is set.

Tables respect your page filters: with a region filter set to "North", the table shows only North rows, and the funnel that appears in its header while you hover the table lists the filters that apply. When the filters leave no rows at all, the table says which filters did it instead of showing an empty grid: each filter with how many rows it keeps on its own, the ones that keep none marked, a Remove for each, and Reset page filters. If what you typed is close to a stored value, it offers that value. Charts do the same.

A table keeps the rows it holds in view. With an automatic height it grows with its rows, and while someone is editing it (Edit) it grows a little more to make room for the Save and Cancel buttons and the New row strip, so a table filtered to the one or two rows being corrected keeps them on screen. With a fixed height the card keeps its size; if it is too small for the table, the table scrolls inside the card, under the widget's title, so every row, the page controls and Save and Cancel can still be reached.

With an automatic height, a table is never taller than the window it is read in. It shows as many whole rows as fit below its title, together with its page controls and its Show all button, and always at least five rows, so in a very small window the page scrolls instead. A pivot with an automatic height does the same. Resize the window or zoom the browser and the table follows, showing more or fewer rows, without reloading anything. Show all shows up to 100 rows at once, and the page scrolls to reach them.

If a table's data cannot be loaded, the table says so in its own space, where the column names and rows would be, with a Try again button that asks again. The message stays while the request is repeated; then the rows come back, or the message shows again if the data still cannot be loaded. Search, sort and filter stay available, because changing any of them asks for the data again. Edit and + Row are unavailable until the data loads, and anything typed but not yet saved is kept.

Each person, and each workspace, can have only a few queries running at the same moment, so that one busy workspace cannot slow down everyone else: six per person, across every workspace they belong to, and eight per workspace. A page keeps to its share by itself - each browser tab runs at most three of its widgets' queries at once and the rest wait their turn, so a page with many widgets fills in a few at a time rather than failing. Two open tabs, or a tab and an AI connector, fit side by side. If a query is still turned away, for example because more tabs are open, the widget asks again by itself a moment later, and only if it is turned away a second time does it say that too many queries are running at once for you or your workspace, with Try again. An ad-hoc query or an AI connector turned away the same way gets the same message, and can simply be run again a moment later.

A table can be downloaded from the widget itself. You choose CSV or Excel - the Excel file keeps the column types and the percent and currency formatting the table shows on screen, so it opens ready to sort and total. See Download the data.

Which rows the file holds depends on where the table is. A table in the Audit Analytics app, or on a survey's Results page, downloads the rows it shows: its filters (including the ones a link set when it opened the page already narrowed to one resource), the page's filters and the search all apply, so a table showing 312 rows downloads 312. The file carries every column of the table's data source, not only the ones on screen, and its rows come in the table's own default order rather than one you sorted them into. A table in any other app downloads its whole data source, whatever is filtered on screen. A spreadsheet holds about a million rows, so Excel is refused for a bigger table, with a message saying so - choose CSV for it.

Files in a table

A table over a dataset with an Attachment column shows each row's files exactly as the dataset's own data view does. Click the file icon in a cell to see the files with their names and sizes, download one (you are asked what to name it first) or see an image in a larger view. An image is previewed when it is a PNG, JPEG, GIF, WebP or AVIF file; any other file, an SVG drawing included, is downloaded rather than previewed. Downloading works on every table, read-only ones included, for anyone who can read the app.

On a data-entry table, administrators can also add and remove files while editing (Edit): choose Add file on an empty cell or the paperclip on a filled one, then pick files or drag them onto the upload dialog. Each file can be up to 4 MB; a bigger one is refused in the dialog and nothing else you changed is lost. To replace a file, remove it and add the new one. A file is uploaded when you confirm the dialog, but it becomes part of the row only when you choose Save; Cancel drops it with the rest of the unsaved changes. Other readers of the app can download files but not add or remove them. See Files in an attachment column for what happens to a file that is removed.

Context columns

Context columns put facts from other datasets beside each row, so the people correcting a table see what they need without leaving it. A table over a dataset, read-only or data-entry, can carry up to 10 of them in total, shown after its own columns with a lock in the header that names the dataset each one comes from.

Context columns come from context from a dataset: you choose a dataset of the same app, and how its rows match this table's rows, once, and then pick as many of its columns as you need. Every column of one context reads the same matching rows. Each column is one of:

  • Value shows a column of that dataset from the first matching row: each order's product category from your products dataset, for example.
  • A function counts or adds up all the matching rows: how many customers bought each product, or the revenue of all its orders, for example. The functions are Count, Count distinct, Sum, Average, Minimum and Maximum, and that list is complete: a calculation beyond them, such as a ratio or a count of only some rows, belongs in a SQL node.

One context can mix both: from your orders dataset, the first customer, the number of customers and the revenue, all matched on the product.

To add context, open the table's settings and find Context columns in the Data group, under the columns. Click Add context from a dataset. Choose From dataset, then Match rows where a column of this table equals a column of that dataset (Match another column adds a second or third pair). Then, for each column, choose its Column and its Function - Value or one of the functions - and give it a Name; Add column adds another column from the same dataset. The editor offers only the functions the dataset has a column for and, per function, only the columns it can use. Renaming a column, or changing its function, keeps it the same column. If you later switch a context to another dataset, the columns that dataset also has stay - found by the same column, or by a column of the same name - and the others go; removing a context's last column removes the context. One context is open for editing at a time.

How values match. A dropdown is compared by the label you see. A number and a text are compared as numbers, so 1 matches "1", "1.0" and "1.00", while a text that is not a number matches nothing - that includes a number written with a decimal comma, such as 1,5. A date and a timestamp are compared by the calendar day, so the date 5 January 2024 matches every timestamp on that day. A text and a date or a timestamp are compared as that date or timestamp: 2024-01-05 matches the date 5 January 2024, and against timestamps it matches only midnight of that day. Two timestamps must be exactly equal. Rows of the other dataset whose match value is empty, or does not read as the type it is compared as, are left out.

What a column shows. A row with no match shows 0 for a count and stays empty otherwise. A row whose own match value is empty shows empty in every column, counts included, because "no customer" is not "no orders". Count without a column counts the matching rows, and with a column counts its non-empty values. Average is the mean of the non-empty values. Minimum and Maximum of a text compare by character code, so Zebra comes before apple, and a dropdown compares by its label, not by the order of its options. A sum keeps its column's type: a sum of a currency column shows that currency, a sum of a percent column a percent, and a sum of whole numbers a whole number; an average keeps a currency or a percent and is otherwise a decimal. A Value, a minimum and a maximum of a currency or percent column show its format too.

What is refused. Sum and Average take a number, currency or percent column, but not a year: the sum of years is not a number anyone reads. A multi-select column holds several options in one cell, so it cannot be a match column, and Count distinct, Minimum and Maximum cannot read it; Count and Value can.

Context columns sort, filter and search like any column, but they are never edited: they are not part of Edit, the new-row form or the record panel, and the text filter suggests no values for them. They always show, since hiding and pinning apply to the table's own columns. Their values come from the same data as the rows - your draft in the editor, the published version for your team - and follow an edit the next time the table loads, with no pipeline run. A download carries the table's own columns only.

When a match value appears more than once in a context's dataset, a Value column shows the first row's value and an amber ! in its header says how many values repeat; a function reads every matching row and shows no warning. A column that cannot be read - its dataset or column was deleted, or it asks for something refused above - stays empty with a red ! in the header saying why, while the rest of the table loads as usual. Vera can add context columns too; one that names something that does not exist, or asks for something refused above, is refused with the reason.

Chart

The Chart widget draws your data as a bar, line, area, scatter, pie or donut chart, so a trend or a ranking is obvious at a glance. Bar compares values across categories, line and area show change over time, pie and donut show how a whole splits into parts, and scatter plots two number columns against each other, to show how one measure moves with another. A chart needs a data source plus the column that labels each point or bar, the column that supplies the values, and optionally more than one series to compare. You can group by a category, and the chart redraws to match your page filters.

A scatter's horizontal axis and each of its series must be number columns: over a text or date column there is nothing to plot, so the chart says so instead of drawing an empty plot. A scatter can carry several series, each plotted at its own values. A chart saved with a type Factophant does not draw, by another tool for example, names that type in place of a drawing until an editor picks a chart type in its settings.

A pie, a donut, or a grouped bar, line or area chart whose label or value column is no longer in its data source shows a message instead of a drawing, and an editor fixes it in the chart's settings. See When a widget names a column that no longer exists.

Each series can also carry its own label: open the pencil on the series row to type one (or clear it back to the column name with Reset), and the legend and the tooltip both use it - handy when two series aggregate the same column in different ways.

Five settings control how a chart reads:

  • Stacked (bar and area) places the series on top of one another instead of side by side, so each bar shows a total that is split into parts rather than several values to compare.
  • Bars (bar only) chooses vertical columns or horizontal bars. Horizontal is the one to reach for when your category names are long: they are read down the side, where there is room, instead of packed across the bottom.
  • Label angle (vertical columns only) turns the category labels flat, at an angle, or upright. Turning them fits far more categories across the bottom. When there are still more labels than will fit legibly, the chart shows every second or third one rather than overlapping them.
  • Category order decides the order the categories are drawn in, and it changes what the chart says: left to right as the data came back, A to Z, highest value first, or lowest first. Highest-first turns a chart into a ranking. Line and area charts offer only the first two, because their horizontal axis usually runs in time and sorting those points by value would destroy the trend they exist to show.
  • Legend (every chart type) shows or hides the colour key naming each series under the chart. It is on by default; switch it off when the tile is tight and the series are obvious - pie and donut charts included, whose legend is how their categories are read.

Colours. Each series takes a colour of the app's theme by its place, or the one you pick with the colour swatch on its row: one of the eight theme colours, which follows the theme, or Override, which opens the colour picker under it for a colour that stays fixed. A swatch holding an override carries a small dot in its corner. Use page colour goes back to the colour the page gives that name, so two charts on one page that show "Housing" draw it in one colour.

Colours per value (pie, donut, and a chart whose series come from a column) gives each value its own colour, from the same swatch, or colours them all at once:

  • Palette: the theme's series colours, one per value in order.
  • Shades: pale to full Series 1, for values that run from little to much.
  • Two-sided: a fixed red through a neutral grey to the theme's colour farthest from red, for a scale with a bad and a good end, such as answers from 1 to 5.

All three use the theme's colours, so they change with it.

How a chart keeps its axis labels readable

Every axis label stays inside its chart, and no label is cut without a sign of it:

  • Numbers. The value axis steps in round amounts (1, 2, 2.5 or 5 times a power of ten), so every label is exactly the value at its tick, zero included, and the axis is exactly as wide as its widest number. This holds for every value axis: down the side of columns, lines and areas, along the bottom of horizontal bars, and both axes of a scatter. A short or narrow chart gets fewer, wider steps, so its numbers never crowd and none is left out. Each axis writes all its numbers the same way: one stepping by less than a thousand writes them out in full (0, 500, 1,000, 1,500, 2,000), and one stepping by a thousand or more shortens every number from a thousand on with one letter per magnitude and no space: k for thousands, M for millions, B for billions and T for trillions, as in 0, 2.5k, 5k, 7.5k, 10k or 0, 500k, 1M, 1.5M, 2M. A German chart writes billions as Mrd and trillions as Bio (4Mrd), because the German "Billion" is a million million, so a B would read a thousand times too large; it also uses its decimal comma (1,5M). The tooltip always shows the full number.
  • Category names down the side (horizontal bars) take at most 40% of the chart's width. A name that fits is written on one line, a longer one wraps onto a second line at a space, and only a name too long for two lines is shortened, with "…" at the end of its second line.
  • Category names along the bottom each get the room up to their neighbours. A name that fits stays on one line and a longer one wraps onto a second. When even two lines would not fit, the chart shows every second or third category rather than squeezing them, always starting with the first; a name is shortened with "…" only when showing fewer categories cannot help. Labels take a second line only where the chart is tall enough to keep all its numbers, so in a small chart they stay on one line.
  • A single word too long for its space is broken across the two lines.
  • Turned labels (at an angle or upright) are cut at 20 characters.

On screen, hovering a shortened label shows its full name.

Charts in a report

A chart in a report writes its numbers and its own messages, such as "No data available.", in the report's language, whatever language you use the app in: a German report shows 1,5M and 0,3 on its axes, 1.500.000 in its tooltips, and "Keine Daten verfügbar." on a chart with nothing to show, while a chart on the Visualisation keeps following the app's language. The editing controls on the page stay in your language. The report editor and a reader's report preview draw the page smaller when your screen is narrower than the paper, but every chart on it is laid out exactly as in the PDF, so the labels you see are the labels that print.

Figure

The Figure widget shows one number over the whole of a data source, such as a total, an average or a count, and can carry one visual under it: a progress bar towards a target, or a trend line over a date column. The bar and the trend line draw in Series 1 of the app's theme unless you pick another colour in the Figure's settings, where Use theme colour puts it back. A comparison under the number shows its change in green for up and red for down, whatever the theme.

Pivot

The Pivot widget groups rows together and shows a summary for each group. An editor sets it up in the pivot's settings: one or more group-by columns (such as region) and one or more summary columns, each a sum, count, average, minimum or maximum of a column (such as the sum of revenue). A year column offers count, minimum and maximum only, because a sum or average of years is not a number anyone reads. People reading the page see the result, one row per group. Use a table when people need the detail, and a pivot when they need the totals.

A new pivot starts on a default so it shows something straight away: it groups by the first column that is not a number and adds up the first number column that is not a year. The default only fills a part you have left empty. A column you chose is always used as you chose it and never quietly swapped for another, so if it is no longer in the data source the pivot shows a message instead of a grid, and an editor fixes it in the pivot's settings. See When a widget names a column that no longer exists.

Formats. A pivot shows its figures the way the data source defines them. A sum of a currency column is shown in that currency with its decimal places, and a sum of a percent column with its decimal places and a % sign. A count is always a whole number, because it counts rows. An average of whole or decimal numbers is rounded to two decimal places. The earliest or latest date of a date column is shown as a date, and a year is shown as a year (2023, never 2,023). A group-by over a dropdown column shows the option's name and colour.

Every group, page by page. A pivot shows every group its data has, a page at a time, and its pager says how many groups there are.

Searching, filtering and sorting. The search box finds groups by the values of the group-by columns, and a dropdown group-by by the option names you see. A filter on a group-by column narrows the rows before the summaries are taken, so the totals follow the filter. A filter on a summary column keeps the groups whose summary passes it, such as the regions whose revenue is above 10,000. Sorting by a summary column puts the groups in order of their summary. The pivot's Fixed filters (its settings' Data group) and the page's filters narrow the rows before the summaries are taken too.

Full screen and download. Open a pivot in full screen from its header (in the editor, from the buttons over the tile); your search stays as it was. The download holds every group the pivot shows under its current search, filters and sort, under the same column headers. Figures are written as plain numbers so a spreadsheet can calculate with them; an Excel file keeps a currency or percent column's format, and a date is written as a date (2024-01-01).

If a pivot cannot read its data, for example because the query took too long, it says so in place of the grid and offers Try again. A report block shows a pivot exactly as the tile does, formats, years and dropdown names included.

Naming a summary column

Each summary column of a pivot can have its own header. In the widget's settings, open the pencil button next to the summary and type the header into Column header, for example "Revenue in EUR". The header is shown above that column on the page, in full screen, in reports and in a downloaded file; the small badge with the summary (SUM, AVG, ...) stays beside it. Leave the field empty, or choose Reset, and the column takes its data source column's name again. A report and a download have no badge, so there an unnamed summary column is headed by the column's name and its summary, such as "Amount (sum)" beside "Amount (max)", and a filter on it reads the same way above the page.

SQL

The SQL widget puts a query box on the page so someone comfortable with SQL can ask ad-hoc questions of the pipeline output. Pick a node as the source and it fills in a starter query to adjust. A query can name a dataset or a SQL node, but not an imported node (indicator data or analysis app data): to query imported data, add a SQL node after the import in the pipeline and query that. If you are not comfortable with SQL you do not need this widget: describe your question to Vera instead, or use the other widgets, which cover most needs without a single query.

A query here reads only this app's own nodes, named directly by their id: a name with a prefix, another app's table, a system table, a file path or a table function in FROM is refused with a message saying what to change, and so is a function that reads settings or the catalog, runs SQL given as text, or changes something. The full rule is in What the Run button can read.

Writing and running a query of your own is a permission of its own, separate from reading the app. It comes with the Contributor, Analyst, App builder and Admin roles on the whole workspace - a role on a single space or app does not give it - and you always hold it in your own personal space. Someone who may only view an app sees each SQL widget's results - the rows of the query saved on the widget - without the query box, so they read what the page's author wrote and cannot change it. In the editor, someone who may change the app but not run queries edits the saved query with no Run button, and a short note says why.

AI

The AI widget runs a curated AI skill and shows the answer right on the page. Its only setting is which skill it runs; the widget takes the skill's name as its title. If the skill asks for something, for example a region or a date range, the widget shows one labelled box per question, so the reader fills those in and clicks Run.

While it works you see what Vera is doing, how long it has been running, and how far it may go. When it finishes you get the answer, with a foldout showing how Vera arrived at it. It needs no data source: the skill already knows which data to look at. A reader whose account is not allowed to use AI sees the widget explain that instead of a Run button.

Knowledge Base

The Knowledge base widget embeds a single page from the app's Knowledge Base on the Visualisation, rendered read-only. Use it to keep guidance next to the numbers: what the data means, how the app is meant to be used, or the rules behind a figure, so people do not have to leave the page to find it. It shows no pipeline data, so it needs no data source; you simply pick which page it displays.

On this page