Mprove
.mdx

Dashboard

Reports, Charts, Dashboards are intended to be created and modified through the user interface. The file representation is for checking errors during validation.

Each dashboard must be stored as dashboard_name.dashboard YAML file:

dashboard: dashboard_nametitle: ''description: ''access_roles:- role- roleparameters:- filter: f1  label: 'label'  description: ''  result: string  suggest_model_dimension: model_name.field_path  conditions:  - f`%a`tiles:- title: 'tile title'  description: ''  model: model_name  select:  - field_path  - field_path  - field_path  parameters:  - apply_to: field_path    listen: f1  - apply_to: field_path    conditions:    - f`> 100`  sorts: field_path desc, field_path, ...  limit: 500  type: chart_type  data:    x_field: field_path    y_fields:    - field_path    - field_path    multi_field: field_path    size_field: field_path  options:    x_axis:      scale: false    y_axis:    - scale: false    - scale: false    series:    - data_field: field_path      y_axis_index: 0      type: chart_type  plate:    plate_width: 8    plate_height: 12    plate_x: 0    plate_y: 0

Reference

Dashboard

NameTypeDefaultDescription
dashboard*string-Dashboard name
titlestring-Dashboard title in UI
descriptionstring-Dashboard description in UI
access_rolesstring []-If specified, only users with the listed roles will have access to Dashboard
parametersTop Filter []-Begin a section of dashboard parameters
tiles*Tile []-Begin a section of tiles

Tile

NameTypeDefaultDescription
title*string-Tile title
descriptionstring-Tile description in UI
model*string-Model name
select*string []-List of selected fields
parametersTile Parameter []-Begin a section of tile parameters
sortsstring-A way to sort data
limitnumber500Limit the number of rows
type*enum-
  • table
  • line
  • scatter
  • bar
  • single
  • pie
dataTile Data-
optionsTile Options-
plateTile Plate-only for dashboard tiles

Tile Parameter

Tile parameter must have listen, conditions or fractions.

NameTypeDefaultDescription
apply_to*string-Field or Filter name
listenstring-only for dashboard tiles
Specify dashboard parameter to listen to
conditionsstring []-for parameters mapped to Malloy Model
List of filter expressions
fractionsFraction []-for parameters mapped to Store Model
List of fractions

Tile Data

NameTypeDefaultDescription
x_field**string-One of selected fields (dimension) to get the X coordinate
y_fields**string []-One or more of selected fields (measure or calculation) to get series data
multi_fieldstring-One of selected fields (dimension) for additional grouping of series data based on field value
size_fieldstring-One of selected fields to set size of data point for scatter chart

Tile Options

NameTypeDefaultDescription
x_axisOptions X Axis-
y_axisOptions Y Axis Element []-
seriesOptions Series Element []-

Options X Axis

NameTypeDefaultDescription
scalebooleanfalse"false" to start X Axis from Zero, "true" to start X Axis from Min value

Options Y Axis Element

NameTypeDefaultDescription
scalebooleanfalse"false" to start Y Axis from Zero, "true" to start Y Axis from Min value

Options Series Element

NameTypeDefaultDescription
data_field**string-for Dashboard or Chart tile options only
One of y_fields values
data_row_id**string-for Report's options only
One of row_ids with show_chart "true"
y_axis_indexinteger00 (Y Axis Left) or 1 (Y Axis Right)
typeenum-
  • line
  • bar

Tile Plate

NameTypeDefaultDescription
plate_widthinteger8Plate width (1 to 24)
plate_heightinteger12Plate height (min is 1)
plate_xinteger0X coordinate of plate's top left corner on the dashboard grid (0 to 23)
plate_yinteger0Y coordinate of plate's top left corner on the dashboard grid (min is 0)

On this page