Part II · Advanced topics · Chapter 8
Building a dashboard
A dashboard puts several charts of a project on one page. They sit on a grid, keep working as they do in their own tabs — tooltips, zoom, animation — and filter each other: pick a continent in one chart and the rest show only that continent. A dashboard is published like a chart, at a link of its own.
What a dashboard is made of
A dashboard is a tab of the project, like a chart, and it is built from the charts the project already has. Each block on it shows one of them — the chart of that tab, with its settings — drawn at the size of the block. Change the chart in its tab and the dashboard shows the change; nothing has to be copied or updated.
- The charts share the data. Every chart of a project draws from its one dataset, which is what lets them filter each other.
- A chart appears once on each dashboard, but a project can have several dashboards, and the same chart can be on all of them.
- Deleting a chart takes it off its dashboards. Undo brings it back, in the place it had.
- Dashboards are saved with the project, by the same autosave, and travel inside its .gph file.
Creating a dashboard
Once the project has a chart, the tab bar has a second button after the last chart tab, beside the one for a new chart: New dashboard. It adds an empty dashboard called Dashboard1 and opens it. Dashboard tabs come after the chart tabs, each with a dashboard icon before its name (a cloud, once it is published), and they behave like them: double-click one to rename it, right-click it for Duplicate, Rename and Delete, and drag it to change its place among the dashboards.
A dashboard tab is laid out in three columns:
- The charts of the project, on the left, each with its title. The ones already on the dashboard are marked, and cannot be dragged a second time.
- The canvas, in the middle: the dashboard at its width, scaled down when the window is too narrow for it. Above it, a menu to preview the dashboard at narrower widths, a button that shows or hides the columns of its grid, and a line with the width, the number of columns and the zoom.
- The settings, on the right: Canvas, Title and footer, Charts, Cross-filtering and Responsive, all covered below.

Placing and sizing charts
Drag a chart from the list onto the canvas. While you drag, a marker shows where it will land, snapped to the grid. Over an empty part of the canvas the chart comes in a third of the width across, with the proportions it has in its tab. Over a gap between other charts it takes the gap instead — narrower if it has to, and as tall as the gap — so that it fits without moving anyone. Over another chart, it pushes that chart down.
Charts stack upwards: each block rises until it meets the top of the canvas or a block above it, so a dashboard never has an empty row. You choose a block's columns and its order, not its height on the page. Gaps across a row are allowed, and the next chart you drop there fills them.
Point at a block to show its controls:
- The bar along its top moves it. Drag it, and the other blocks make room as you go — and go back to their places if you move on. Double-click the bar to open the chart's tab and edit the chart.
- Its sides and lower corners resize it. The cursor changes over them, and while you drag, the block is outlined in blue with its width and height in pixels, as when you resize the canvas of a chart. Sizes go by whole steps of the grid, and no block gets smaller than about 120 pixels a side, below which a chart cannot be read.
- The round × at its corner takes the chart off the dashboard. The chart stays in the project.
With the keyboard, move to a block's bar with Tab: the arrow keys move the block, Shift and the arrows resize it, Delete removes it and Enter opens its chart. On a touch screen, tap a block to show its controls, and tap outside it to hide them. Every change can be undone.
A chart that needs more room than its block — a ranking with many bars, say — scrolls inside it, as it would in a window too small for it.
Dropping a chart into a gap

Resizing a block

The grid
The grid is set under Canvas:
- Width — the width of the dashboard in pixels, 1200 by default. It is the width it is designed at, and the widest it ever gets: in a wider window or column it stays at this width, centered.
- Grid columns — how many columns the width is divided into, 12 by default.
- Grid gutter — the space between two columns, and between two rows, 16 pixels by default.
- Padding — the space around the whole grid, 24 pixels by default. The first and the last column sit right against it.
The grid is square: a row is as tall as a column is wide, with the same gutter between rows as between columns. Heights therefore go by whole steps too, and every block keeps its shape when the grid changes: a different width, gutter or padding resizes all the blocks at once, and a different number of columns keeps each block in the same place and the same shape, in proportion — from 12 columns to 6, a block four columns wide becomes two.
To see the grid, press the button with the columns above the canvas: the columns appear in pale pink behind the blocks, and in front of them while you move or resize one, so that you can see which columns it snaps to. They are only a guide while you edit, and readers never see them. The grid starts hidden, and the button shows or hides it again; that choice is yours, kept in your browser, not part of the dashboard.
How it looks
Two groups of settings decide the look. Under Canvas:
- Background — the color behind the charts. It is automatic until you pick one: a shade a little darker than the charts' own background, so that each chart reads as a card. With white charts it is a very light grey; with dark charts, a darker color still.
Under Title and footer, the dashboard has a title above the grid and a footer below it, with the same fields as the title and footer of a chart: the text, which can mix bold, italics and colors, then Font, Align, Font size and Default color. The color is automatic until you pick one, dark on a light canvas and light on a dark one. Double-click the title or the footer on the canvas to edit it in place.
Under Charts, what applies to every chart on the dashboard:
- Background — one color for all the charts, transparent ones included. Left at Per chart, each keeps its own.
- Padding — the space between each chart and the edge of its card, 16 pixels by default. It replaces the Left, Right, Top and Bottom padding of each chart, so that the charts line up. Empty, it reads Per chart, and each chart keeps its own.
- Corner radius and Shadow — of the cards.
None of this changes the charts in their tabs. The size of a chart's tab does not matter here either: on the dashboard every chart is drawn at the size of its block.
Charts that filter each other
With Filter the other charts ticked, under Cross-filtering — as it is by default — any interactive filter in one chart filters all the others. The filters are the ones described in An introduction to filters, set in each chart's own tab: a legend, a categorical axis or the range slider of a numeric axis whose Interactive filter is not None, and on a map, the regions themselves when the variable on Units has one. In Figure 1, the continents in the legend of the scatter plot and the countries of the map both work this way.
Choosing something in one chart redraws the others with the rows chosen: the bars add up only the population of the continent picked, the box plot shows only its countries, and the map greys out the rest. Filters in several charts combine, and what is drawn is what is chosen in all of them. To start again, clear the selection where you made it — on a map, click its background.
With Filter the other charts unticked, what is chosen in a chart only highlights in that chart, which suits a dashboard of charts that do not depend on each other.
Animate the charts, on by default, makes the charts move from one state to the next as they are filtered instead of jumping to it, in the Duration (ms) set below it — 300 milliseconds unless you change it. The charts are filtered together, so the setting is the dashboard's, not each chart's.
Narrow screens
A dashboard is designed at its Width, but it is not always shown at that width: a reader may open it on a phone, or the page that embeds it may give it a narrow column. What happens then depends on the room it has:
- As wide as its width, or wider — the dashboard as you designed it, centered when there is room to spare.
- A little narrower — the same layout, smaller. The columns get narrower, and since the grid is square, the rows get shorter with them: every block keeps its place and its shape. The gutter and the padding keep their size in pixels.
- Below a breakpoint — fewer columns, and the charts rearranged to fit them. By default there is one breakpoint: below 640 pixels, 3 columns.
The breakpoints are listed under Responsive, each as Below a width in pixels, a number of columns. Add breakpoint adds one, up to six, and the × beside each removes it. A breakpoint never adds columns, only takes them away, and one as wide as the dashboard or wider never applies: the settings grey it out and say why. When the room is below several breakpoints, the narrowest of them applies: with one below 900 pixels at 6 columns and another below 640 at 3, a dashboard 700 pixels wide has 6 columns, and one 500 pixels wide has 3.
The rearranged layout is not drawn by hand: it is worked out from the design, always by the same rule.
- The blocks are taken in reading order: from the top down, and left to right along each row.
- Each keeps its width in columns, cut down to the new number of columns.
- They fill rows one after the other. When the next block does not fit in what is left of a row, it starts a new one, and the blocks of a row that is not full are widened, in proportion, until it is.
- Each block keeps its shape at its new width, but is never less than 200 pixels tall, and the blocks of a row all take the height of the tallest.
- And each block grows, if it needs to, to the height its chart asks for at that width: room for its title, its legend and its axes, around a data area with a sensible proportion. At narrow widths those take a larger share of the block, and keeping the shape alone could leave a scatter plot with a legend almost no room to plot in. A block grows to the nearest whole row, and to no more than twice the height its shape gives it.
So three blocks four columns wide side by side in 12 columns become, at 3 columns, three blocks the full width of the screen, one under the other. Because blocks keep their width in columns, a breakpoint at many columns keeps more of the design than one at few: at 6 columns, two blocks three columns wide still share a row, but two blocks four columns wide no longer fit side by side, and each fills a row of its own.
The menu above the canvas previews each breakpoint: Design width · 1200 px is the dashboard you edit, and each At 640 px · 3 columns shows it as it is at that width. A preview cannot be edited — move or resize the blocks in the design, or change the breakpoints, and the preview follows.

What counts is the room the dashboard has, not the size of the screen: embedded in a narrow column of a wide page, it rearranges for that column. And in a smaller block a chart is not shrunk, but drawn again for its new size, with the same rules it follows in a narrow window.
Publishing a dashboard
A dashboard is published like a chart, as described in Publishing online: with the dashboard tab open, press Publish. The dialog, the button and its menu work the same way, and the published dashboard gets a link of its own, which you can send or embed. A dashboard with no charts on it cannot be published.
- What goes online is the dashboard, its charts, and one dataset with every row and the columns that its charts use between them. The limits on the data are those of a chart; the settings of all its charts together can take up to 4 MB, and a dashboard can hold up to 40 charts.
- Embedded, the frame takes the whole height of the dashboard for the width the page gives it, so it is taller on a phone, where the charts are stacked. Add data-max-height to the iframe to cap it, and the dashboard scrolls inside that height.
- One footer runs under the whole dashboard, with Get the data and Open in Graphica, which brings it back to the app as a project with all its charts and the dashboard.
- In My published charts, a dashboard has Dashboard before its state, and Republish with current dashboard appears on it when a dashboard tab is open. A dashboard can only replace a dashboard, and a chart a chart: the same link never changes from one to the other.
A dashboard has no Export: to get an image of one of its charts, export it from the chart's tab.
Where to go next
This is the last chapter. The charts on a dashboard are built as everywhere else in this manual; the filters that make them work together are in An introduction to filters and Adding interaction, and the link and the embed code in Publishing online.
