Dagboards
A dagboard is a dashboard built from bricks wired together into a graph. Input Bricks give values, Python Logic Bricks compute from them, and Viz Bricks show the results. The graph has no loops, so values always flow from the inputs to the charts.
Input and Viz Bricks
Input Bricks (11): Boolean Input, Date Picker, Date Range, DateTime Picker, Float Input, Form, Int Input, Multi Select, Period Input, Single Select and Text Input.
Viz Bricks (31): 3D Surface Plot, Ag Grid, Bar Chart, Box Plot, Card, Date Output, DateTime Output, Drill Down Table, Fan Chart, Float Output, Gauge, Heatmap, Histogram, Image, Int Output, Line Chart, Markdown, Network Graph, Pie Chart, Regression Chart, Rich Text, Scatter Chart, Series Table, Single Histogram, Stock Chart, Sunburst Chart, Table, Text Output, Timeseries Heatmap, Tree and Tree Map.
Each Viz Brick expects a shape of data: the charts over time take a timeseries (Logic Bricks), tables take a dataframe, and the outputs a single value.
Build one
Make's Dagboard, in the sidebar, opens an empty dagboard ready to edit. To change a dagboard you have, turn on Edit in its toolbar, which makes it editable in place. Then:
- +, at the dagboard's bottom right, adds an Input Brick, a Logic Brick, a Link Brick or a Viz Brick from a picker, or a Viz Brick in a new panel.
- Graph, in the toolbar, shows the bricks as nodes above the dagboard, with the wires between them, and the control in its corner expands it. The graph refuses a wire between values of different types, and one that would make a loop. A double-click on it adds a brick too.
- Editing a node opens its Inputs, Outputs, Settings and CSS. For a Logic Brick, Code opens its code, and right-clicking a node offers View Data, with its inputs, code and outputs.
- New Logic Brick, the first choice in the Logic Brick picker, opens a new Logic Brick in a new tab (Logic Bricks).
- Once it has changes, the toolbar has Save and Discard. Its ⋯ has Reset dagboard, which goes back to the last save, and Delete dagboard.
Save it
Save asks for the dagboard's name, which is also its address, and a description, tags and an icon. A name
has at least two letters, in any language, since its files are named after it: it doesn't start with an
underscore, start or end with a period, or hold any of / \ : * ? " < > |, and it isn't a
name Windows keeps for a device, such as CON, or too long. Saving under another name keeps the original and
saves a copy under the new name.
How it computes
- When an input changes, the Logic Bricks that depend on it run again, and their Viz Bricks update. Dagboard Settings can turn that off, refresh the dagboard on a timer, or hide the Refresh button.
- Logic Bricks that don't depend on each other run at the same time, each in its own Python worker.
- A run that takes a while shows its progress, how many of its bricks are done, with Cancel. Cancel stops the Logic Bricks still running. A brick that didn't update shows Not updated, and keeps its last values.
- In the graph, clicking a brick opens its run details beside it: its state and time, its error and logs, then its outputs and its inputs. Clicking a wire shows the value it carries.
- When a Logic Brick fails, the dagboard shows its error, and the bricks after it don't update. Show details and logs opens the failed Logic Brick's run details.
A sample opens with the results it was saved with, so it shows at once, while Python starts in the background.
Reports and PDF
Share, in the dagboard's toolbar, or Share… when you right-click the dagboard, has a PDF tab. Save as PDF prints the dagboard as the screen shows it, on the paper and in the orientation you pick. Lay out as a report shows the dagboard as pages, and the report's own Save as PDF prints them or saves them as a PDF file, made in your browser. Edit report layout opens the report with Page Setup, which sets the orientation, paper size, margins, and a header and footer. The report's close button, or Escape, takes you back to the dagboard.
Next: Logic Bricks