show

The keyword show displays a tile, a fundamental unit of an Envision dashboard.

‘show’, display a tile

A dashboard produced by Envision is composed of tiles; the show keyword provides the means for displaying a single tile. The simplest type of a tile is label:

show label "Hello, World!"

which simply displays a given text.

A slightly more complex tile is scalar, which displays a given text with a single value:

show scalar "My number" with 123

or:

show scalar "My text" with "hello"

The summary tile is a more complex tile that displays several values at once (using multi-line syntax):

show summary "Several scalar values" with
  123
  "hello"
  date(2024, 1, 31)

A few other types of tiles that take tabular data are table, barchart, and piechart:

table C = with
  [| as Country, as Region,       as UnitSold, as InEuros |]
  [| "France",   "Europe",        100,         10000      |]
  [| "Germany",  "Europe",        125,         12500      |]
  [| "USA",      "North America", 1000,        100000     |]
  [| "Canada",   "North America", 75,          7500       |]

show table "Sales by Region (table)" with
  C.Region
  sum(C.UnitSold) as "Units"
  sum(C.InEuros) as "€"
  group by C.Region

show barchart "Sales by Region (barchart)" with
  sum(C.InEuros) as "€"
  group by C.Region

show piechart "Sales by Region (piechart)" with
  sum(C.InEuros) as "€"
  group by C.Region

In the show statements above, with accepts a list of vectors (columns) to display, each of which is placed on a separate line using the multiline syntax. The show table statement is displayed as follows:

Region Units
Europe 225 22.5k
North America 1075 107.5k

The show barchart statement is displayed as follows:

Sales by region (barchart)

The show piechart statement is displayed as follows:

Sales by region (piechart)

In summary, the show keyword accepts the following syntactical elements:

See also

Below is the complete list of tile types supported by Envision:

User Contributed Notes
0 notes + add a note